Rodiyah commited on
Commit
8440cfb
·
verified ·
1 Parent(s): 17c9bbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -68,11 +68,19 @@ def predict_retinopathy(image):
68
  # Gradio app
69
  gr.Interface(
70
  fn=predict_retinopathy,
71
- inputs=gr.Image(type="pil"),
72
  outputs=[
73
- gr.Image(type="pil", label="Grad-CAM"),
74
  gr.Text(label="Prediction")
75
  ],
76
- title="Diabetic Retinopathy Detection",
77
- description="Upload a retinal image to classify DR and view Grad-CAM heatmap."
 
 
 
 
 
 
 
78
  ).launch()
 
 
68
  # Gradio app
69
  gr.Interface(
70
  fn=predict_retinopathy,
71
+ inputs=gr.Image(type="pil", label="Upload Retinal Image"),
72
  outputs=[
73
+ gr.Image(type="pil", label="Grad-CAM Heatmap"),
74
  gr.Text(label="Prediction")
75
  ],
76
+ title="OpthaDetect AI Retinal Screening",
77
+ description=(
78
+ "A lightweight AI system for detecting Diabetic Retinopathy from retinal images. "
79
+ "Upload an image to classify DR and visualise the Grad-CAM heatmap showing important regions."
80
+ ),
81
+ article=(
82
+ "⚕️ **OpthaDetect** is an AI-powered ophthalmic diagnostic tool. "
83
+ "It highlights retinal risk regions using Grad-CAM for better clinical interpretability."
84
+ )
85
  ).launch()
86
+