How manepallisruthi123-hub/healthsathiai works
HealthSathi AI is a bilingual health-question assistant. Users submit text or voice through the web interface; Flask handles queries, optionally translates Telugu, resolves a disease intent, retrieves a medical answer, and returns text plus synthesized audio. The README also documents browser speech recognition, while the backend has a separate optional audio-transcription route. The source excerpt shows SQLite Q&A lookup and chat logging. The local model directory is present, but the sampled backend uses the Hugging Face Inference API; unsampled UI behavior is represented only where the README documents it.
Main entry points: HealthSathi_Flask.py Query processing · HealthSathi_WebUI.html Web interface · healthsathi.db Medical Q&A database
Components 14
User interface
- Web interface
HealthSathi_WebUI.html - Browser speech input
Flask workflow
- Flask endpoints
HealthSathi_Flask.py - Audio transcription
HealthSathi_Flask.py - Query processing
HealthSathi_Flask.py - Disease matching
HealthSathi_Flask.py
Knowledge and history
- Medical Q&A database
healthsathi.db - Chat history
healthsathi.db
Language and audio
- Intent classification API
- Telugu translation
HealthSathi_Flask.py - Speech synthesis
HealthSathi_Flask.py
Other components
- User
- gTTS service
- Google speech recognition
Connections 16
- User → Web interface: asks question
README.md - Web interface → Browser speech input: captures speech
README.md - Web interface → Flask endpoints: submits query
README.md - Browser speech input → Web interface: transcribes speech
README.md - Flask endpoints → Audio transcription: handles audio
HealthSathi_Flask.py - Audio transcription → Google speech recognition: transcribes audio
HealthSathi_Flask.py - Audio transcription → Query processing: sends transcript
HealthSathi_Flask.py - Flask endpoints → Query processing: processes text
HealthSathi_Flask.py - Query processing → Telugu translation: translates Telugu
HealthSathi_Flask.py - Query processing → Disease matching: resolves disease
HealthSathi_Flask.py - Disease matching → Intent classification API: classifies fallback
HealthSathi_Flask.py - Query processing → Medical Q&A database: retrieves answer
HealthSathi_Flask.py - Query processing → Speech synthesis: generates audio
HealthSathi_Flask.py - Speech synthesis → gTTS service: synthesizes speech
HealthSathi_Flask.py - Flask endpoints → Chat history: records exchange
HealthSathi_Flask.py - Flask endpoints → Web interface: serves interface
HealthSathi_Flask.py