--- title: MedGemma Radiology Report Generator emoji: 🧠 colorFrom: purple colorTo: indigo sdk: gradio python_version: '3.10' app_file: app.py sdk_version: 5.39.0 --- # MedGemma Radiology Report Generator This Hugging Face Space demonstrates the capabilities of Google's **MedGemma 4b-it** model for generating radiology reports from medical images. Simply upload a medical image (such as a chest X-ray), and the model will return a detailed natural language report describing relevant findings. --- ### đŸ”Ŧ How to Use 1. Upload a medical image (e.g., PNG, JPEG, X-ray) using the image input box. 2. The model will automatically generate a text-based radiology report. > âš ī¸ **Note:** The MedGemma model requires that the prompt includes an `` token to correctly associate the image with the generated response. This is handled automatically by the app. --- ### 🧠 Model Information - **Model:** `google/medgemma-4b-it` - **Hugging Face Link:** [https://huggingface.co/google/medgemma-4b-it](https://huggingface.co/google/medgemma-4b-it) - **Requirements:** You must request access to the model and provide a valid `HF_TOKEN` secret in your Space for it to work. --- ### âš ī¸ Disclaimer This application is intended for **research and demonstration purposes only**. It should **not** be used for clinical decision-making. All generated reports must be reviewed and validated by a qualified medical professional. --- ### â„šī¸ Known Limitations - DICOM files are not yet supported — please convert to PNG or JPEG before uploading. - Model output can vary — results may include artifacts or hallucinated content. - Performance is limited by available hardware in public Spaces. Consider running locally or on a private GPU Space for heavy usage. --- Feel free to fork this Space or modify it to suit your own clinical AI research workflows!