How rohithkumar0219/heal-x works
Heal_X is an educational multimodal healthcare assistant: users submit text, images, voice, or combinations through a browser UI; FastAPI routes process them into structured health explanations, possible conditions, and precautions, with optional spoken responses. The backend separates request/response schemas, modality-specific AI services, and upload handling. The README documents these capabilities, while sampled code verifies several route and service interactions. The LLM and file-handler implementations were not sampled, so their internal behavior and some connections remain unspecified.
Main entry points: health_routes.py Health API routes · script.js Assistant interface · main.py FastAPI app · tts_service.py Speech synthesis
Components 15
Browser experience
- Assistant interface
frontend/script.js - Local history
frontend/script.js
API and contracts
- FastAPI app
backend/main.py - Health API routes
backend/routes/health_routes.py - Health contracts
backend/models/schemas.py
AI services
- Text response service
backend/services/llm_service.py - Image analysis
backend/services/vision_service.py - Speech transcription
backend/services/speech_service.py - Speech synthesis
backend/services/tts_service.py
Files and state
- Upload handling
backend/utils/file_handler.py - Application logging
backend/utils/logger.py - Generated audio
Other components
- Healthcare user
- AI model provider
- gTTS service
Connections 20
- Healthcare user → Assistant interface: uses
README.md - Assistant interface → Health API routes: submits queries
frontend/script.js - Assistant interface → Local history: stores history
frontend/script.js - FastAPI app → Health API routes: mounts router
backend/main.py - FastAPI app → Assistant interface: serves static UI
backend/main.py - Health API routes → Health contracts: validates responses
backend/routes/health_routes.py - Health API routes → Text response service: requests answers
backend/routes/health_routes.py - Health API routes → Image analysis: analyzes images
backend/routes/health_routes.py - Health API routes → Speech transcription: transcribes audio
backend/routes/health_routes.py - Health API routes → Speech synthesis: generates audio
backend/routes/health_routes.py - Health API routes → Upload handling: validates uploads
backend/routes/health_routes.py - FastAPI app → Application logging: logs events
backend/main.py - Health API routes → Application logging: logs requests
backend/routes/health_routes.py - Image analysis → AI model provider: sends image analysis
backend/services/vision_service.py - Speech transcription → AI model provider: uploads audio
backend/services/speech_service.py - Text response service → AI model provider: requests text answers
- Speech synthesis → gTTS service: converts text
backend/services/tts_service.py - Speech synthesis → Generated audio: writes audio
backend/services/tts_service.py - Health API routes → Generated audio: serves audio
backend/routes/health_routes.py - Health API routes → Assistant interface: returns results
frontend/script.js