Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Header

Typing SVG


Python Streamlit Google Gemma Google AI


Status Hackathon Track Model Languages Cost Live Demo


GitHub LinkedIn Portfolio


πŸ’š The colors that power MedSathi

#2ecc71 #2ecc71 β€” Life Green Β Β Β  #1a6b3c #1a6b3c β€” Deep Medical Β Β Β  #0d1f0d #0d1f0d β€” Dark Background Β Β Β  #e74c3c #e74c3c β€” Emergency Red


🌍 The Problem β€” 700 Million People Without Healthcare

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.


πŸ₯ What is MedSathi?

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."


πŸ“Š Impact at a Glance

🌍 Target Population πŸ—£οΈ Languages πŸ’Š Symptoms ⏰ Availability πŸ’° Cost 🚨 Emergency
700M+ Rural Indians Hindi & English 6+ Quick Buttons 24 / 7 Completely Free Auto-Detect

πŸš€ Features

╔══════════════════════════════════════════════════════════════════════════╗
β•‘                       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 β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

πŸ€– How Gemma 3 Powers MedSathi

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
)

🚨 Emergency Detection System

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.


πŸ—οΈ How It Works

         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"

πŸ› οΈ Tech Stack

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

πŸƒ Run Locally

# 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:8501

πŸ“‚ Project Structure

MedSathi/
β”‚
β”œβ”€β”€ πŸ“„ 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

πŸ’Ό Why MedSathi Can Win

🎯  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

πŸ‘¨β€πŸ’» Built By

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."


LinkedIn GitHub Portfolio Live App


⭐ If MedSathi inspired you, please give it a star! ⭐

Footer

About

AI Health Assistant for Rural India powered by Gemma 3 | Built for Gemma Impact Hackathon 2025

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages