File size: 1,202 Bytes
cedfb6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

---
title: AI-Powered Differential Diagnosis (Educational)
emoji: ⚕️
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "4.44.0"
app_file: app.py
pinned: false
---

# AI-Powered Differential Diagnosis (Educational)

Input at least 3 comma-separated symptoms to generate differential diagnoses.

The model uses TF-IDF similarity over your dataset to suggest likely conditions and display reasoning steps.

## Features
- Ranks possible diagnoses with similarity scores
- Shows few-shot examples from your dataset
- Displays a reasoning chain and hypothesis tree
- Educational use only (not medical advice)

## Files Required
- `app.py`
- `requirements.txt`
- `differential_diagnosis_dataset.csv`

## Run Locally
```bash
pip install -r requirements.txt
python app.py
```

Then open [http://127.0.0.1:7860](http://127.0.0.1:7860).

## Deployment Steps
1. Go to your Hugging Face Space.
2. Click **Files and versions → Add file → Upload files**.
3. Upload the files listed above.
4. Commit changes and wait for the build to finish.

## Safety
This app is for **educational use only**.  
Do **not** use it for medical decisions.  
If you have symptoms, contact a licensed healthcare provider.