An AI-powered medical assistant built with Flask and distilgpt2.
Enter your symptoms, and get preliminary, realistic diagnosis-style responses using LLM.
📦 Tech Used Python, Flask Transformers (distilgpt2) HTML/CSS (basic UI)
🔐 Notes No API keys required (uses local model) Model will download on first run (distilgpt2)
We chose distilgpt2 because:
- It’s small and fast (great for demos)
- Doesn’t require an OpenAI API key
- Enough to simulate diagnosis-like output
- Works well locally with no cost
(1)Create Virtual Environment
python -m venv venv Then activate it: Windows: venv\Scripts\activate
Linux/Mac: source venv/bin/activate
(2)Install Your Dependencies
pip install -r requirements.txt
(3)(Optional) Add .env File OPENAI_API_KEY=your-key-here
(4)Run the App
python app.py
git clone https://github.com/YOUR_USERNAME/MediGpt.git
cd MediGpt