Spaces:
Runtime error
Runtime error
OmerFarooq
commited on
Commit
•
55fbcc5
1
Parent(s):
66e0db8
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def get_grad(img):
|
|
152 |
demo = gr.Interface(
|
153 |
fn = get_grad,
|
154 |
inputs = gr.Image(type = "pil", shape = (224,224)),
|
155 |
-
outputs = [gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM
|
156 |
description = "Visual Explanations from Deep Networks",
|
157 |
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
158 |
)
|
|
|
152 |
demo = gr.Interface(
|
153 |
fn = get_grad,
|
154 |
inputs = gr.Image(type = "pil", shape = (224,224)),
|
155 |
+
outputs = [gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM w.r.t cat"), gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM w.r.t dog"), gr.Textbox(label = 'Prediction', info = '[P of cat, P of dog]')],
|
156 |
description = "Visual Explanations from Deep Networks",
|
157 |
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
158 |
)
|