Downloads · 30 days
14
21% of all-time downloads
mou11/medical-report-generator
medical-report-generator is a text generation model from mou11. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
14
21% of all-time downloads
All-time downloads
66
Public
Repo size
27.3 MB
Likes
2
Public
Click a slice to open those files.
.safetensors27.3 MB · 89%
From the Hugging Face model README
👉 Try it on Hugging Face Spaces
An end-to-end clinical report generation pipeline that generates structured medical reports from patient data, detects hallucinations using NLI, outputs FHIR R4 compliant JSON, and exports professional PDF reports.
| Report Type | BERTScore F1 | Safety Score |
|---|---|---|
| Radiology | 0.8628 | 0.625 |
| Discharge Summary | 0.9045 | 1.0 |
| Lab Report | 0.8129 | 0.375 |
| Report Type | Total Claims | Hallucination Rate | Safety Score |
|---|---|---|---|
| Radiology | 4 | 0.375 | 0.625 |
| Discharge | 1 | 0.0 | 1.0 |
| Lab | 4 | 0.625 | 0.375 |
Patient Data → Report Generation (LLaMA 3.3 70B via Groq) → Hallucination Detection (DeBERTa NLI) → Evaluation (BERTScore + ROUGE) → FHIR R4 JSON → PDF Export
| Component | Tool |
|---|---|
| LLM | Groq — LLaMA 3.3 70B |
| Hallucination Detection | cross-encoder/nli-deberta-v3-base |
| Evaluation | BERTScore + ROUGE |
| FHIR Output | HL7 R4 JSON |
| PDF Export | ReportLab |
| UI | Gradio |
| Platform | Google Colab (T4 GPU) |
app.py in Google ColabGROQ_KEY_1This system is for educational and research purposes only. It does not provide medical advice. Always consult a qualified healthcare professional for medical decisions.
✅ Report generation pipeline complete ✅ Hallucination detection implemented ✅ FHIR R4 compliant output ✅ PDF export working ✅ Gradio demo deployed on Hugging Face Spaces