Spaces:
Sleeping
Sleeping
Upload README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
title: AI-Powered Differential Diagnosis (Educational)
|
| 4 |
+
emoji: ⚕️
|
| 5 |
+
colorFrom: blue
|
| 6 |
+
colorTo: purple
|
| 7 |
+
sdk: gradio
|
| 8 |
+
sdk_version: "4.44.0"
|
| 9 |
+
app_file: app.py
|
| 10 |
+
pinned: false
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# AI-Powered Differential Diagnosis (Educational)
|
| 14 |
+
|
| 15 |
+
Input at least 3 comma-separated symptoms to generate differential diagnoses.
|
| 16 |
+
|
| 17 |
+
The model uses TF-IDF similarity over your dataset to suggest likely conditions and display reasoning steps.
|
| 18 |
+
|
| 19 |
+
## Features
|
| 20 |
+
- Ranks possible diagnoses with similarity scores
|
| 21 |
+
- Shows few-shot examples from your dataset
|
| 22 |
+
- Displays a reasoning chain and hypothesis tree
|
| 23 |
+
- Educational use only (not medical advice)
|
| 24 |
+
|
| 25 |
+
## Files Required
|
| 26 |
+
- `app.py`
|
| 27 |
+
- `requirements.txt`
|
| 28 |
+
- `differential_diagnosis_dataset.csv`
|
| 29 |
+
|
| 30 |
+
## Run Locally
|
| 31 |
+
```bash
|
| 32 |
+
pip install -r requirements.txt
|
| 33 |
+
python app.py
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Then open [http://127.0.0.1:7860](http://127.0.0.1:7860).
|
| 37 |
+
|
| 38 |
+
## Deployment Steps
|
| 39 |
+
1. Go to your Hugging Face Space.
|
| 40 |
+
2. Click **Files and versions → Add file → Upload files**.
|
| 41 |
+
3. Upload the files listed above.
|
| 42 |
+
4. Commit changes and wait for the build to finish.
|
| 43 |
+
|
| 44 |
+
## Safety
|
| 45 |
+
This app is for **educational use only**.
|
| 46 |
+
Do **not** use it for medical decisions.
|
| 47 |
+
If you have symptoms, contact a licensed healthcare provider.
|