Update app.py
Browse files
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="
|
| 77 |
-
description=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|