#2ecc71 β Life Green
Β Β Β
#1a6b3c β Deep Medical
Β Β Β
#0d1f0d β Dark Background
Β Β Β
#e74c3c β Emergency Red
It is 2 AM in a village near Jhansi, Uttar Pradesh. A 60-year-old man has chest pain and difficulty breathing. The nearest hospital is 47 kilometres away. There is no doctor to call. No reliable information available. His family guesses. They wait. They hope.
This is not a rare situation. This is everyday life for 700 million rural Indians.
- π₯ 6 lakh villages in India have no primary health centre
- π¨ββοΈ 1 doctor per 1,700 people in rural areas vs WHO recommendation of 1 per 1,000
- π΅ Limited internet in remote areas makes online search unreliable
- π Language barrier β most health information is in English only
MedSathi was built to solve this β by someone from Jhansi, for people who look like his neighbours.
MedSathi (meaning Health Friend in Hindi) is an AI-powered health assistant built specifically for rural India using Google Gemma 3.
Users describe symptoms in Hindi or English and instantly receive:
β
Simple, jargon-free health guidance
β
Possible causes explained in plain language
β
Home remedies and self-care steps
β
Clear warning signs requiring immediate attention
β
Emergency alerts with helpline numbers (108, 104)
"Not a doctor. Not a replacement. A knowledgeable friend who is always available."
| π Target Population | π£οΈ Languages | π Symptoms | β° Availability | π° Cost | π¨ Emergency |
|---|---|---|---|---|---|
| 700M+ Rural Indians | Hindi & English | 6+ Quick Buttons | 24 / 7 | Completely Free | Auto-Detect |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MEDSATHI FEATURE PIPELINE β
β βββββββββββββββββββββ¦βββββββββββββββββββββββββββββββ¦ββββββββββββββββββββββ£
β Feature β What It Does β Why It Matters β
β βββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββ£
β π€ Gemma 3 AI β Powers all health responses β Accurate & Fast β
β π Bilingual β Hindi + English support β Reaches 500M+ β
β π¨ Emergency β Auto-detects critical cases β Can save lives β
β π Quick Buttons β 6 one-click symptoms β Easy for elders β
β β¨οΈ Typing Anim β Word-by-word AI response β Natural & engaging β
β π¨ Dark UI β Green medical theme β Professional look β
β π Secure β API key via .env secrets β Production ready β
β π± Responsive β Works on mobile & desktop β Rural mobile users β
ββββββββββββββββββββββ©βββββββββββββββββββββββββββββββ©ββββββββββββββββββββββ
MedSathi uses gemma-3-4b-it β Google's instruction-tuned Gemma 3 model β with a carefully engineered system prompt that:
- Forces simple, non-technical language appropriate for rural users
- Enforces a structured response format (Causes β Home Care β Warning Signs β Doctor Visit)
- Detects emergency symptoms and triggers immediate alert protocols
- Switches language mode based on user's selection (Hindi/English)
- Never gives a confirmed diagnosis β always recommends professional consultation
# Gemma 3 powers MedSathi's intelligence
response = client.models.generate_content(
model="gemma-3-4b-it",
contents=full_prompt # System prompt + user symptoms
)MedSathi automatically scans every Gemma response for emergency keywords:
English triggers β "EMERGENCY", "AMBULANCE", "IMMEDIATELY"
Hindi triggers β "ΰ€ΰ€ͺΰ€Ύΰ€€ΰ€ΰ€Ύΰ€²", "ΰ€€ΰ₯ΰ€°ΰ€ΰ€€", "ΰ€
ΰ€Έΰ₯ΰ€ͺΰ€€ΰ€Ύΰ€²"
When triggered:
- π΄ Pulsing red alert box appears instantly
- π Emergency numbers displayed: Ambulance 108 | Health 104 | Police 100
β οΈ Bold warning to go to hospital immediately
This feature exists because in rural India, people often cannot tell when a situation is life-threatening.
User opens MedSathi
β
Selects Language (Hindi / English)
β
Types symptoms OR clicks quick button
β
Gemma 3 processes with medical system prompt
β
βββββββββββββββββββββββββββββββββββ
β Emergency keyword detected? β
β YES β π¨ Red pulsing alert β
β NO β Normal structured reply β
βββββββββββββββββββββββββββββββββββ
β
Word-by-word typing animation
β
Always ends: "Please visit a doctor"
AI Model β Google Gemma 3 (gemma-3-4b-it) β Core intelligence engine
API β Google AI Studio β Free Gemma API access
Frontend β Streamlit β Rapid UI development
Language β Python 3.x β Application logic
Styling β Custom CSS + Animations β Medical green dark theme
Fonts β Google Poppins β Clean, readable typography
Security β python-dotenv β API key protection
Hosting β Streamlit Cloud β Free live deployment
Version β Git + GitHub β Source control
# 1. Clone the repository
git clone https://github.com/DeveshShukla23/MedSathi.git
cd MedSathi
# 2. Install dependencies
pip install streamlit google-genai python-dotenv
# 3. Create .env file with your API key
echo "GOOGLE_API_KEY=your_google_ai_studio_key" > .env
# 4. Run the app
streamlit run app.py
# 5. Open browser at http://localhost:8501MedSathi/
β
βββ π app.py β Main Streamlit application (Gemma 3 powered)
βββ π requirements.txt β Python dependencies for Streamlit Cloud
βββ π .env β API key β NOT pushed to GitHub (protected)
βββ π .gitignore β Protects .env from accidental exposure
βββ π README.md β This file
π― REAL PROBLEM β 700M rural Indians genuinely lack healthcare access
π€ GEMMA 3 CORE β Not a wrapper. Gemma is the intelligence engine.
π EDGE READY β Lightweight enough for low-bandwidth rural areas
π£οΈ HINDI FIRST β Most AI health tools are English-only. Not MedSathi.
π¨ SAVES LIVES β Emergency detection is not a gimmick. It is critical.
β€οΈ PERSONAL STORY β Built by someone from Jhansi, for his own community
Devesh Shukla Data Analyst & Generative AI Developer Jhansi, Uttar Pradesh, India
"I built MedSathi because I have seen what happens when a village has no doctor and no information. Gemma 3 gave me the power to do something about it."
β If MedSathi inspired you, please give it a star! β