File size: 2,677 Bytes
76166e3
 
 
 
 
 
7f28651
76166e3
 
 
 
f83b968
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7f28651
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
title: Mental Wellness Platform
emoji: 🧠
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.8.0
app_file: app.py
pinned: false
---

# Mental Wellness Platform

A comprehensive mental wellness support system powered by AI, deployed on Hugging Face Spaces.

## Features
- πŸ€– Multi-agent AI support system
- πŸ’¬ Natural therapeutic conversations
- πŸ“Š Mental health assessments
- πŸ§˜β€β™€οΈ Guided meditation and mindfulness
- 🚨 Crisis intervention support
- πŸ“± Multi-modal interaction (text, voice, image)
- πŸ“ˆ Comprehensive logging and analytics
- πŸ”„ Automatic log rotation and management

## System Components
- Therapeutic Conversation Agent
- Assessment Agent
- Mindfulness Agent
- Crisis Intervention Agent
- Analytics and Logging System

## Logging System
The platform includes a comprehensive logging system with:
- Agent-specific logs
- System health monitoring
- Analytics tracking
- Performance metrics
- Security event logging
- Automatic log rotation
- Log cleanup for older files

### Log Categories
1. Agent Logs (`logs/agents/`)
   - Individual agent activities
   - Performance metrics
   - Error tracking

2. System Logs (`logs/system/`)
   - System health
   - Resource usage
   - General operations

3. Analytics Logs (`logs/analytics/`)
   - User interactions
   - Session metrics
   - Model performance
   - Usage statistics

## Usage
1. Open the chat interface
2. Type your message or use voice/image input
3. Choose from available tools:
   - Mental Health Check
   - Start Meditation
   - View Resources

## Important Note
This is an AI-powered support tool and not a substitute for professional mental health care. In case of emergency:
- Call emergency services: 911 (US)
- National Crisis Hotline: 988
- Crisis Text Line: Text HOME to 741741

## Technical Details
Built with:
- Gradio for interface
- Hugging Face Transformers for AI models
- CrewAI for multi-agent orchestration
- Advanced voice and image processing
- Comprehensive logging system

## Development
To run locally:
1. Clone the repository
2. Install dependencies:
   ```bash
   pip install -r requirements.txt
   ```
3. Run the application:
   ```bash
   python app.py
   ```

## Monitoring
The system includes:
- Real-time performance monitoring
- Error tracking and alerts
- Usage analytics
- System health metrics

## Security
- All conversations are encrypted
- Comprehensive security logging
- Access control and monitoring
- Data retention policies

## License
MIT License

## Authors
Created by Invincible Jha

## Acknowledgments
- CrewAI for the multi-agent framework
- Hugging Face for AI models and hosting
- Gradio for the interface framework