Spaces:
Sleeping
Sleeping
Upload README_fixed.md
#2
by
Konaguy - opened
- README_fixed.md +47 -0
README_fixed.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 |
+
license: mit
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# AI-Powered Differential Diagnosis (Educational)
|
| 15 |
+
|
| 16 |
+
This Hugging Face Space allows you to input patient symptoms and receive a ranked list of possible differential diagnoses based on TF-IDF similarity to an existing dataset.
|
| 17 |
+
|
| 18 |
+
## How It Works
|
| 19 |
+
- Input at least **3 comma-separated symptoms**.
|
| 20 |
+
- The app uses **TF-IDF vectorization** to compare your input against the dataset.
|
| 21 |
+
- It provides:
|
| 22 |
+
- A ranked list of **possible diagnoses**.
|
| 23 |
+
- A **chain of reasoning** explaining logical steps.
|
| 24 |
+
- **Few-shot examples** and a **tree of hypotheses**.
|
| 25 |
+
|
| 26 |
+
## Files Required
|
| 27 |
+
- `app.py`
|
| 28 |
+
- `requirements.txt`
|
| 29 |
+
- `differential_diagnosis_dataset.csv`
|
| 30 |
+
|
| 31 |
+
## Run Locally
|
| 32 |
+
```bash
|
| 33 |
+
pip install -r requirements.txt
|
| 34 |
+
python app.py
|
| 35 |
+
```
|
| 36 |
+
Then open [http://127.0.0.1:7860](http://127.0.0.1:7860) in your browser.
|
| 37 |
+
|
| 38 |
+
## Deployment Steps on Hugging Face
|
| 39 |
+
1. Go to your Space (e.g. [https://huggingface.co/spaces/Konaguy/GradiotestApp](https://huggingface.co/spaces/Konaguy/GradiotestApp))
|
| 40 |
+
2. Upload the files listed above using the **Files and versions → Add file → Upload files** option.
|
| 41 |
+
3. Commit your changes.
|
| 42 |
+
4. Wait for the build to finish; the Space will automatically start the Gradio app.
|
| 43 |
+
|
| 44 |
+
## Safety Notice
|
| 45 |
+
This project is for **educational and research purposes only**.
|
| 46 |
+
It is **not a medical device** and should **not be used for real patient diagnosis or treatment**.
|
| 47 |
+
Always consult a licensed medical professional for actual care or emergencies.
|