Spaces:
Build error
Build error
Upload 5 files
Browse files
README.md
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# MedSynapticGPT – Multimodal Clinical Reasoner
|
| 2 |
|
| 3 |
**Tagline:** *“Read the scan. Hear the patient. Answer like an expert.”*
|
| 4 |
|
| 5 |
-
MedSynapticGPT brings the creative power of GPT
|
| 6 |
|
| 7 |
## 🚑 Core Modules
|
| 8 |
| Tab | What it does | Key APIs |
|
| 9 |
| --- | --- | --- |
|
| 10 |
-
| **Radiology AI** | Vision interpretation, abnormality detection, TNM staging | `gpt
|
| 11 |
-
| **Clinical Note Q&A** | Summarize or answer free
|
| 12 |
-
| **Voice Triage** | Transcribe symptoms, suggest differential | `whisper
|
| 13 |
| **UMLS Lookup** | Search concepts, synonyms, codes | UMLS REST + caching |
|
| 14 |
| **GraphRAG Explorer** | Prototype biomedical KG Q&A | `networkx`, toy graph |
|
| 15 |
|
|
@@ -18,13 +29,13 @@ MedSynapticGPT brings the creative power of GPT‑4o to **clinical imaging, note
|
|
| 18 |
git clone <repo>
|
| 19 |
cd MedSynapticGPT
|
| 20 |
pip install -r requirements.txt
|
| 21 |
-
export OPENAI_API_KEY="sk
|
| 22 |
streamlit run app.py
|
| 23 |
```
|
| 24 |
-
Deploy on Spaces → add secrets. For on
|
| 25 |
|
| 26 |
## Monetization
|
| 27 |
-
1. **Freemium 3 studies/day** → Stripe pay
|
| 28 |
2. **Pro** ($49/mo) – unlimited, PDF reports, HL7 export.
|
| 29 |
3. **Enterprise API** – hospital integration, HIPAA BAA.
|
| 30 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: MedSynapticGPT
|
| 3 |
+
emoji: "🩺"
|
| 4 |
+
colorFrom: "red"
|
| 5 |
+
colorTo: "blue"
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.35.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
# MedSynapticGPT – Multimodal Clinical Reasoner
|
| 13 |
|
| 14 |
**Tagline:** *“Read the scan. Hear the patient. Answer like an expert.”*
|
| 15 |
|
| 16 |
+
MedSynapticGPT brings the creative power of GPT-4o to **clinical imaging, notes, and speech**. Upload a chest X-ray (DICOM/PNG), paste a discharge summary, or record symptoms—get structured impressions with **SNOMED-CT codes, guideline citations, and treatment suggestions**.
|
| 17 |
|
| 18 |
## 🚑 Core Modules
|
| 19 |
| Tab | What it does | Key APIs |
|
| 20 |
| --- | --- | --- |
|
| 21 |
+
| **Radiology AI** | Vision interpretation, abnormality detection, TNM staging | `gpt-4o vision`, `pydicom` |
|
| 22 |
+
| **Clinical Note Q&A** | Summarize or answer free-form questions | `gpt-4o` |
|
| 23 |
+
| **Voice Triage** | Transcribe symptoms, suggest differential | `whisper-1`, `gpt-4o` |
|
| 24 |
| **UMLS Lookup** | Search concepts, synonyms, codes | UMLS REST + caching |
|
| 25 |
| **GraphRAG Explorer** | Prototype biomedical KG Q&A | `networkx`, toy graph |
|
| 26 |
|
|
|
|
| 29 |
git clone <repo>
|
| 30 |
cd MedSynapticGPT
|
| 31 |
pip install -r requirements.txt
|
| 32 |
+
export OPENAI_API_KEY="sk-…"
|
| 33 |
streamlit run app.py
|
| 34 |
```
|
| 35 |
+
Deploy on Spaces → add secrets. For on-prem, launch `uvicorn api:app`.
|
| 36 |
|
| 37 |
## Monetization
|
| 38 |
+
1. **Freemium 3 studies/day** → Stripe pay-per-usage.
|
| 39 |
2. **Pro** ($49/mo) – unlimited, PDF reports, HL7 export.
|
| 40 |
3. **Enterprise API** – hospital integration, HIPAA BAA.
|
| 41 |
|
api.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
"""FastAPI micro
|
| 2 |
from fastapi import FastAPI, UploadFile, File, Form
|
| 3 |
import openai, pydicom, numpy as np, io
|
| 4 |
from PIL import Image
|
|
|
|
| 1 |
+
"""FastAPI micro-service for enterprise EHR integration"""
|
| 2 |
from fastapi import FastAPI, UploadFile, File, Form
|
| 3 |
import openai, pydicom, numpy as np, io
|
| 4 |
from PIL import Image
|
app.py
CHANGED
|
@@ -56,7 +56,7 @@ with tabs[0]:
|
|
| 56 |
else:
|
| 57 |
img = Image.open(up)
|
| 58 |
st.image(img, caption="Preview", use_column_width=True)
|
| 59 |
-
report = gpt("You are a board
|
| 60 |
st.markdown("#### Report")
|
| 61 |
st.write(report)
|
| 62 |
|
|
|
|
| 56 |
else:
|
| 57 |
img = Image.open(up)
|
| 58 |
st.image(img, caption="Preview", use_column_width=True)
|
| 59 |
+
report = gpt("You are a board-certified radiologist. Provide an impression with SNOMED codes.", "Describe findings and give TNM if cancer present.")
|
| 60 |
st.markdown("#### Report")
|
| 61 |
st.write(report)
|
| 62 |
|