Spaces:
Runtime error
Runtime error
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# RadioFlow: AI-Powered Radiology Workflow Agent
|
| 2 |
|
| 3 |
> **MedGemma Impact Challenge Submission**
|
|
@@ -38,68 +59,27 @@ RadioFlow is a multi-agent AI system that streamlines radiology workflows by pro
|
|
| 38 |
| **Report Generator** | MedGemma | Create structured radiology report |
|
| 39 |
| **Priority Router** | MedGemma | Assess urgency, route to care pathway |
|
| 40 |
|
| 41 |
-
## Quick Start
|
| 42 |
-
|
| 43 |
-
### 1. Setup Environment
|
| 44 |
-
|
| 45 |
-
```bash
|
| 46 |
-
# Create virtual environment
|
| 47 |
-
python -m venv venv
|
| 48 |
-
source venv/bin/activate # On Windows: venv\Scripts\activate
|
| 49 |
-
|
| 50 |
-
# Install dependencies
|
| 51 |
-
pip install -r requirements.txt
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
### 2. Configure HuggingFace Access
|
| 55 |
-
|
| 56 |
-
```bash
|
| 57 |
-
# Login to HuggingFace (required for gated models)
|
| 58 |
-
huggingface-cli login
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
### 3. Run the Application
|
| 62 |
-
|
| 63 |
-
```bash
|
| 64 |
-
python app.py
|
| 65 |
-
```
|
| 66 |
-
|
| 67 |
-
The Gradio interface will launch at `http://localhost:7860`
|
| 68 |
-
|
| 69 |
-
## Project Structure
|
| 70 |
-
|
| 71 |
-
```
|
| 72 |
-
radioflow/
|
| 73 |
-
βββ app.py # Main Gradio application
|
| 74 |
-
βββ requirements.txt # Python dependencies
|
| 75 |
-
βββ README.md # This file
|
| 76 |
-
βββ agents/ # Agent implementations
|
| 77 |
-
β βββ __init__.py
|
| 78 |
-
β βββ base_agent.py # Base agent class
|
| 79 |
-
β βββ cxr_analyzer.py # Agent 1: CXR Foundation
|
| 80 |
-
β βββ finding_interpreter.py # Agent 2: MedGemma
|
| 81 |
-
β βββ report_generator.py # Agent 3: MedGemma
|
| 82 |
-
β βββ priority_router.py # Agent 4: MedGemma
|
| 83 |
-
βββ orchestrator/ # Agent coordination
|
| 84 |
-
β βββ __init__.py
|
| 85 |
-
β βββ workflow.py # Workflow orchestrator
|
| 86 |
-
βββ utils/ # Utilities
|
| 87 |
-
β βββ __init__.py
|
| 88 |
-
β βββ visualization.py # Plotting and overlays
|
| 89 |
-
β βββ metrics.py # Performance tracking
|
| 90 |
-
βββ sample_data/ # Test images
|
| 91 |
-
βββ .gitkeep
|
| 92 |
-
```
|
| 93 |
-
|
| 94 |
## HAI-DEF Models Used
|
| 95 |
|
| 96 |
- **CXR Foundation**: [google/cxr-foundation](https://huggingface.co/google/cxr-foundation)
|
| 97 |
- **MedGemma**: [google/medgemma-4b-it](https://huggingface.co/google/medgemma-4b-it)
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
## License
|
| 100 |
|
| 101 |
This project is submitted under CC BY 4.0 as required by the competition.
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
## Acknowledgments
|
| 104 |
|
| 105 |
- Google Health AI Developer Foundations team
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: RadioFlow - AI Radiology Workflow Agent
|
| 3 |
+
emoji: π©»
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.19.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
license: cc-by-4.0
|
| 11 |
+
tags:
|
| 12 |
+
- medical
|
| 13 |
+
- radiology
|
| 14 |
+
- chest-x-ray
|
| 15 |
+
- medgemma
|
| 16 |
+
- hai-def
|
| 17 |
+
- healthcare
|
| 18 |
+
- agentic
|
| 19 |
+
- multi-agent
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
# RadioFlow: AI-Powered Radiology Workflow Agent
|
| 23 |
|
| 24 |
> **MedGemma Impact Challenge Submission**
|
|
|
|
| 59 |
| **Report Generator** | MedGemma | Create structured radiology report |
|
| 60 |
| **Priority Router** | MedGemma | Assess urgency, route to care pathway |
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
## HAI-DEF Models Used
|
| 63 |
|
| 64 |
- **CXR Foundation**: [google/cxr-foundation](https://huggingface.co/google/cxr-foundation)
|
| 65 |
- **MedGemma**: [google/medgemma-4b-it](https://huggingface.co/google/medgemma-4b-it)
|
| 66 |
|
| 67 |
+
## Usage
|
| 68 |
+
|
| 69 |
+
1. Upload a chest X-ray image
|
| 70 |
+
2. (Optional) Add clinical context
|
| 71 |
+
3. Click "Analyze X-Ray"
|
| 72 |
+
4. View the generated report, priority assessment, and visualizations
|
| 73 |
+
|
| 74 |
## License
|
| 75 |
|
| 76 |
This project is submitted under CC BY 4.0 as required by the competition.
|
| 77 |
|
| 78 |
+
## Disclaimer
|
| 79 |
+
|
| 80 |
+
β οΈ **For demonstration purposes only. Not for clinical use.**
|
| 81 |
+
This AI system requires radiologist verification before any clinical decisions.
|
| 82 |
+
|
| 83 |
## Acknowledgments
|
| 84 |
|
| 85 |
- Google Health AI Developer Foundations team
|