How chaitanya-rajendra/ai-medical-chatbot works
This is a Gradio medical-image consultation app with voice input and spoken output. The user submits a question and image; the app transcribes the audio, encodes and analyzes the image with the question, then generates speech from the response and returns text and audio. The README documents Groq speech-to-text, AI image analysis, and ElevenLabs or gTTS speech output. The excerpts show the app’s orchestration and provider calls; no separate storage layer is evident.
Main entry points: gradio_app.py Gradio app · brain_of_the_doctor.py Image analysis · voice_of_the_patient.py Speech transcription · voice_of_the_doctor.py gTTS synthesis
Components 12
Consultation interface
- Gradio app
gradio_app.py
Consultation processing
- Image encoding
brain_of_the_doctor.py - Image analysis
brain_of_the_doctor.py
Voice services
- Speech transcription
voice_of_the_patient.py - gTTS synthesis
voice_of_the_doctor.py - ElevenLabs synthesis
voice_of_the_doctor.py
Other components
- Patient
- Groq STT
- Groq vision model
- Groq API
- ElevenLabs API
- gTTS service
Connections 10
- Patient → Gradio app: submits inputs
README.md - Gradio app → Speech transcription: transcribes audio
gradio_app.py - Speech transcription → Groq API: requests transcription
voice_of_the_patient.py - Gradio app → Image encoding: encodes image
gradio_app.py - Gradio app → Image analysis: requests analysis
gradio_app.py - Image analysis → Groq vision model: requests vision analysis
brain_of_the_doctor.py - Gradio app → ElevenLabs synthesis: generates speech
gradio_app.py - Gradio app → gTTS synthesis: fallback speech
gradio_app.py - ElevenLabs synthesis → ElevenLabs API: synthesizes speech
voice_of_the_doctor.py - gTTS synthesis → gTTS service: synthesizes speech
voice_of_the_doctor.py