How a-joshika-git/multimodelopttab---early-lung-cancer-detection works
MultiModalOptTab is a Gradio demo for lung-cancer risk prediction from a chest CT image and patient attributes. A user supplies those inputs and prediction controls; the app delegates to a predictor that validates the image, prepares model inputs, runs a checkpoint-loaded ensemble, and presents a risk estimate and related details. The README documents five ensemble checkpoints, preprocessing/calibration artifacts, and an optional CT reference profile. The excerpts do not show the complete inference or model implementation, so internal stages are represented at a high level.
Main entry points: inference.py Predictor orchestration · app.py Gradio inputs · validators.py CT validation · model.py Multimodal ensemble
Components 7
User interface
- Gradio inputs
app.py - Risk display
app.py
Prediction runtime
- Predictor orchestration
inference.py - CT validation
validators.py - Multimodal ensemble
model.py - Model artifacts
Other components
- Demo user
Connections 7
- Demo user → Gradio inputs: enters inputs
app.py - Gradio inputs → Predictor orchestration: requests prediction
app.py - Predictor orchestration → CT validation: validates image
inference.py - Predictor orchestration → Multimodal ensemble: runs ensemble
inference.py - Predictor orchestration → Model artifacts: loads artifacts
README.md - Predictor orchestration → Risk display: returns prediction
app.py - Risk display → Demo user: shows risk
app.py