Spaces:
Runtime error
Runtime error
OmerFarooq
commited on
Commit
•
9187e65
1
Parent(s):
33dc1ed
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,9 @@ def get_grad(img):
|
|
115 |
demo = gr.Interface(
|
116 |
fn = get_grad,
|
117 |
inputs = gr.Image(type = "pil", shape = (224,224)),
|
118 |
-
outputs = [gr.Image(type = "numpy", width = 320, height = 320), gr.Textbox(label = 'Prediction', info = '(threshold: 0.5)')]
|
|
|
|
|
119 |
)
|
120 |
demo.launch()
|
121 |
|
|
|
115 |
demo = gr.Interface(
|
116 |
fn = get_grad,
|
117 |
inputs = gr.Image(type = "pil", shape = (224,224)),
|
118 |
+
outputs = [gr.Image(type = "numpy", width = 320, height = 320), gr.Textbox(label = 'Prediction', info = '(threshold: 0.5)')],
|
119 |
+
description = "Visual Explanations from Deep Networks",
|
120 |
+
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
121 |
)
|
122 |
demo.launch()
|
123 |
|