0
stars
31
commits
2
linked in READMEs
Aug 16, 2026
updated
🔗 https://huggingface.co/spaces/manu02/CXR-Findings-AI

CXR-Findings-AI is an interactive Gradio application that:
The system lets researchers, clinicians, and students explore how different image regions influence each generated word, enabling deeper interpretability in medical AI.
A lightweight multimodal model produces chest X-ray findings directly from the uploaded image.
Inspect how the model distributes attention:
For each selected word:
Click any word in the generated report to reveal its cross-modal attention patterns.
git clone https://github.com/devMuniz02/Image-Attention-Visualizer
cd Image-Attention-Visualizer
Windows:
python -m venv venv
.\venv\Scripts\Activate.ps1
macOS / Linux:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py
Then open:
http://127.0.0.1:7860
Upload a chest X-ray (or load a sample)
Adjust:
Click Generate Findings
Click any generated word to visualize:
| File | Description |
|---|---|
app.py | Main Gradio interface and visualization logic |
utils/models/complete_model.py | Full multimodal model assembly |
utils/processing.py | Image preprocessing |
assets/ | UI images & examples |
requirements.txt | Dependencies |
README.md | This file |
output_attentions=True in .generate()model.decoder.tokenizer is loadedmax_new_tokens or use CPU-only settingsCompatible with any encoder–decoder or vision–language model that:
Accepts pixel_values
Returns attentions when calling
model.generate(..., output_attentions=True)
Provides a decoder tokenizer:
model.decoder.tokenizer
Ideal for research in:
31 commits
0
stars
31
commits
2
linked in READMEs
Aug 16, 2026
updated
🔗 https://huggingface.co/spaces/manu02/CXR-Findings-AI

CXR-Findings-AI is an interactive Gradio application that:
The system lets researchers, clinicians, and students explore how different image regions influence each generated word, enabling deeper interpretability in medical AI.
A lightweight multimodal model produces chest X-ray findings directly from the uploaded image.
Inspect how the model distributes attention:
For each selected word:
Click any word in the generated report to reveal its cross-modal attention patterns.
git clone https://github.com/devMuniz02/Image-Attention-Visualizer
cd Image-Attention-Visualizer
Windows:
python -m venv venv
.\venv\Scripts\Activate.ps1
macOS / Linux:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py
Then open:
http://127.0.0.1:7860
Upload a chest X-ray (or load a sample)
Adjust:
Click Generate Findings
Click any generated word to visualize:
| File | Description |
|---|---|
app.py | Main Gradio interface and visualization logic |
utils/models/complete_model.py | Full multimodal model assembly |
utils/processing.py | Image preprocessing |
assets/ | UI images & examples |
requirements.txt | Dependencies |
README.md | This file |
output_attentions=True in .generate()model.decoder.tokenizer is loadedmax_new_tokens or use CPU-only settingsCompatible with any encoder–decoder or vision–language model that:
Accepts pixel_values
Returns attentions when calling
model.generate(..., output_attentions=True)
Provides a decoder tokenizer:
model.decoder.tokenizer
Ideal for research in:
31 commits