Spaces:
Configuration error
Configuration error
invincible-jha
commited on
Commit
·
3af4f1c
0
Parent(s):
Initial deployment
Browse files- .gitattributes +35 -0
- README.md +88 -0
- app.py +1 -0
- requirements.txt +22 -0
.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Mental Wellness Platform
|
| 2 |
+
|
| 3 |
+
A comprehensive mental wellness platform that provides mental health assessment, monitoring, and support through multiple modalities. The platform utilizes state-of-the-art AI models for voice analysis, text analysis, and therapeutic interaction.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Voice Analysis**
|
| 8 |
+
- Speech recognition and transcription
|
| 9 |
+
- Emotion detection from voice
|
| 10 |
+
- Prosodic feature analysis
|
| 11 |
+
- Speech pattern analysis
|
| 12 |
+
|
| 13 |
+
- **Text Analysis**
|
| 14 |
+
- Sentiment analysis
|
| 15 |
+
- Emotion detection
|
| 16 |
+
- Mental health indicator detection
|
| 17 |
+
- Cognitive state assessment
|
| 18 |
+
|
| 19 |
+
- **Therapeutic Support**
|
| 20 |
+
- AI-powered therapeutic conversations
|
| 21 |
+
- Personalized coping strategies
|
| 22 |
+
- Crisis detection and support
|
| 23 |
+
- Mental health resources
|
| 24 |
+
|
| 25 |
+
## Installation
|
| 26 |
+
|
| 27 |
+
1. Clone the repository:
|
| 28 |
+
```bash
|
| 29 |
+
git clone https://github.com/yourusername/mental-wellness-platform.git
|
| 30 |
+
cd mental-wellness-platform
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
2. Create a virtual environment and activate it:
|
| 34 |
+
```bash
|
| 35 |
+
python -m venv venv
|
| 36 |
+
source venv/bin/activate # On Windows, use: venv\Scripts\activate
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
3. Install the required packages:
|
| 40 |
+
```bash
|
| 41 |
+
pip install -r requirements.txt
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Usage
|
| 45 |
+
|
| 46 |
+
1. Start the application:
|
| 47 |
+
```bash
|
| 48 |
+
python src/app.py
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
2. Open your web browser and navigate to the provided URL (typically http://localhost:7860)
|
| 52 |
+
|
| 53 |
+
3. Use the platform's features through the Gradio interface:
|
| 54 |
+
- Record voice input for analysis
|
| 55 |
+
- Enter text for emotional analysis
|
| 56 |
+
- Engage in therapeutic conversation
|
| 57 |
+
- View analysis results and recommendations
|
| 58 |
+
|
| 59 |
+
## Model Information
|
| 60 |
+
|
| 61 |
+
The platform uses the following models:
|
| 62 |
+
- Whisper ASR for speech recognition
|
| 63 |
+
- DistilRoBERTa for emotion classification
|
| 64 |
+
- FLAN-T5 for therapeutic responses
|
| 65 |
+
- Various custom models for mental health assessment
|
| 66 |
+
|
| 67 |
+
## Privacy and Security
|
| 68 |
+
|
| 69 |
+
- All data is processed locally
|
| 70 |
+
- No data is stored permanently
|
| 71 |
+
- End-to-end encryption for data transmission
|
| 72 |
+
- Compliant with privacy best practices
|
| 73 |
+
|
| 74 |
+
## Contributing
|
| 75 |
+
|
| 76 |
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
| 77 |
+
|
| 78 |
+
## License
|
| 79 |
+
|
| 80 |
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
| 81 |
+
|
| 82 |
+
## Disclaimer
|
| 83 |
+
|
| 84 |
+
This platform is not a substitute for professional mental health care. If you're experiencing a mental health crisis, please contact your local emergency services or call the National Crisis Helpline at 988.
|
| 85 |
+
|
| 86 |
+
## Support
|
| 87 |
+
|
| 88 |
+
For questions, issues, or feature requests, please open an issue on the GitHub repository.
|
app.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr; demo = gr.Interface(fn=lambda x: x, inputs='text', outputs='text'); demo.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio>=4.1.1
|
| 2 |
+
torch>=2.0.0
|
| 3 |
+
transformers>=4.34.0
|
| 4 |
+
librosa>=0.10.1
|
| 5 |
+
numpy>=1.24.0
|
| 6 |
+
plotly>=5.18.0
|
| 7 |
+
scipy>=1.11.3
|
| 8 |
+
pandas>=2.1.0
|
| 9 |
+
python-dotenv>=1.0.0
|
| 10 |
+
huggingface-hub>=0.19.0
|
| 11 |
+
scikit-learn>=1.3.2
|
| 12 |
+
soundfile>=0.12.1
|
| 13 |
+
torchaudio>=2.0.0
|
| 14 |
+
accelerate>=0.24.1
|
| 15 |
+
matplotlib>=3.7.1
|
| 16 |
+
seaborn>=0.12.2
|
| 17 |
+
pyyaml>=6.0.1
|
| 18 |
+
requests>=2.31.0
|
| 19 |
+
tqdm>=4.65.0
|
| 20 |
+
nltk>=3.8.1
|
| 21 |
+
spacy>=3.7.2
|
| 22 |
+
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz
|