Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,3 +10,73 @@ pinned: false
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
+
|
| 14 |
+
# AI Medical Research Assistant Prototype
|
| 15 |
+
|
| 16 |
+
β οΈ **This is a research prototype only - NOT FOR MEDICAL USE** β οΈ
|
| 17 |
+
|
| 18 |
+
## Project Description
|
| 19 |
+
A proof-of-concept AI system demonstrating:
|
| 20 |
+
- Medical image analysis (X-rays, CT scans)
|
| 21 |
+
- Prescription text parsing
|
| 22 |
+
- Research-backed medical Q&A using DeepSeek
|
| 23 |
+
- Safety guardrails for medical content
|
| 24 |
+
|
| 25 |
+
## Features
|
| 26 |
+
- π· Basic medical image analysis
|
| 27 |
+
- π Prescription medication extraction
|
| 28 |
+
- π Research-supported responses
|
| 29 |
+
- β οΈ Automatic safety filtering
|
| 30 |
+
|
| 31 |
+
## Setup Instructions
|
| 32 |
+
|
| 33 |
+
1. **Hugging Face Secrets**:
|
| 34 |
+
- Add your DeepSeek API key as a secret:
|
| 35 |
+
- Name: `DEEPSEEK_API_KEY`
|
| 36 |
+
- Value: [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]
|
| 37 |
+
|
| 38 |
+
2. **Required Models**:
|
| 39 |
+
- Will auto-download on first run:
|
| 40 |
+
- `obi/deid_bert_i2b2` (Prescription parser)
|
| 41 |
+
- `Hate-speech-CNERG/dehatebert-mono-english` (Safety filter)
|
| 42 |
+
- TorchXRayVision models
|
| 43 |
+
|
| 44 |
+
3. **Hardware Requirements**:
|
| 45 |
+
- GPU Space recommended
|
| 46 |
+
- Minimum 8GB RAM
|
| 47 |
+
|
| 48 |
+
## Usage
|
| 49 |
+
1. Input options:
|
| 50 |
+
- Medical question (text)
|
| 51 |
+
- Medical images (X-ray/CT scans)
|
| 52 |
+
- Prescription text
|
| 53 |
+
|
| 54 |
+
2. Output:
|
| 55 |
+
- Research-supported response with safety disclaimers
|
| 56 |
+
|
| 57 |
+
## Models Used
|
| 58 |
+
| Component | Model/API | Source |
|
| 59 |
+
|------------------------|-------------------------------------|-----------------------------------|
|
| 60 |
+
| Medical Q&A | DeepSeek API | https://deepseek.com |
|
| 61 |
+
| Prescription Parsing | `obi/deid_bert_i2b2` | Hugging Face Model Hub |
|
| 62 |
+
| X-ray Analysis | DenseNet121 | TorchXRayVision |
|
| 63 |
+
| Safety Filter | `dehatebert-mono-english` | Hugging Face Model Hub |
|
| 64 |
+
|
| 65 |
+
## Legal Disclaimer
|
| 66 |
+
THIS SYSTEM:
|
| 67 |
+
- β Is NOT a medical device
|
| 68 |
+
- β Cannot diagnose conditions
|
| 69 |
+
- β Should NOT be used for treatment decisions
|
| 70 |
+
- β
For research purposes only
|
| 71 |
+
|
| 72 |
+
Consult licensed healthcare professionals for medical advice.
|
| 73 |
+
|
| 74 |
+
## Limitations
|
| 75 |
+
- Image analysis uses placeholder implementations
|
| 76 |
+
- Prescription parsing limited to English text
|
| 77 |
+
- Responses require clinical validation
|
| 78 |
+
- No HIPAA compliance implemented
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
**Warning**: This prototype contains simulated medical AI components. Actual medical AI systems require regulatory approval and clinical validation.
|