Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,26 +4,62 @@ emoji: π₯
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
# π₯ AI Diagnostics Agent: Early Cancer Discovery (Demo)
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
---
|
| 17 |
|
| 18 |
-
##
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
---
|
| 25 |
|
| 26 |
-
##
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
|
|
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.49.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
# π₯ AI Diagnostics Agent: Early Cancer Discovery (Demo)
|
| 13 |
|
| 14 |
+
[](https://www.python.org/)
|
| 15 |
+
[](https://moonshot.ai)
|
| 16 |
+
[](https://gradio.app/)
|
| 17 |
+
|
| 18 |
+
β οΈ **Research Demo Only β Not for Clinical Use**
|
| 19 |
|
| 20 |
---
|
| 21 |
|
| 22 |
+
## π Overview
|
| 23 |
+
|
| 24 |
+
**AI Diagnostics (POC)** is a research project designed to demonstrate early cancer risk screening using **AI-driven imaging + lab report synthesis**.
|
| 25 |
+
|
| 26 |
+
It integrates:
|
| 27 |
+
- πΌοΈ **Imaging Agent** β Detects lung abnormalities (mass, opacity, nodules) from chest X-rays.
|
| 28 |
+
- π§ͺ **Lab Agent** β Parses tumor markers (PSA, CA-125, AFP) and highlights abnormal results.
|
| 29 |
+
- π§ **AI Coordinator** β Generates diagnostic summaries powered by **Moonshot.ai** with a local **T5 fallback** for offline use.
|
| 30 |
+
- π₯ **Heatmap Overlay** β Highlights model-identified lung regions for interpretability.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## βοΈ Features
|
| 35 |
+
|
| 36 |
+
| Agent | Description |
|
| 37 |
+
|--------|--------------|
|
| 38 |
+
| **Imaging Agent** | TorchXRayVision + PyTorch for lung-related cancer indicators |
|
| 39 |
+
| **Lab Agent** | Extracts structured tumor marker insights |
|
| 40 |
+
| **Coordinator** | Combines both into concise AI summaries (Moonshot.ai LLM) |
|
| 41 |
+
| **Fallback AI** | Local text generation using T5-small if network/API fails |
|
| 42 |
+
| **Heatmap Overlay** | Visual interpretability of X-ray activations |
|
| 43 |
+
| **Gradio UI** | Easy drag-and-drop web interface for demos |
|
| 44 |
|
| 45 |
---
|
| 46 |
|
| 47 |
+
## π§ How It Works
|
| 48 |
+
|
| 49 |
+
1. Upload or select a sample chest X-ray.
|
| 50 |
+
2. Paste lab or MRI/CT report text.
|
| 51 |
+
3. The AI analyzes the image + text.
|
| 52 |
+
4. Results are combined into a natural-language diagnostic summary.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## π Run Locally
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
git clone https://github.com/<your-org>/ai_diagnostics.git
|
| 60 |
+
cd ai_diagnostics
|
| 61 |
+
pip install -r requirements.txt
|
| 62 |
+
python app.py
|
| 63 |
+
|
| 64 |
|
| 65 |
|