Spaces:
Runtime error
Runtime error
OmerFarooq
commited on
Commit
•
be2c21d
1
Parent(s):
96d3d00
Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,10 @@ with gr.Blocks() as demo:
|
|
163 |
img_input = gr.Image(type = "pil", shape = (224,224), width = 320, height = 320)
|
164 |
img_output1 = gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM w.r.t cat")
|
165 |
img_output2 = gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM w.r.t dog")
|
166 |
-
|
|
|
|
|
|
|
167 |
|
168 |
demo.launch()
|
169 |
|
|
|
163 |
img_input = gr.Image(type = "pil", shape = (224,224), width = 320, height = 320)
|
164 |
img_output1 = gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM w.r.t cat")
|
165 |
img_output2 = gr.Image(type = "numpy", width = 320, height = 320, label = "Grad_CAM w.r.t dog")
|
166 |
+
|
167 |
+
description = "Visual Explanations from Deep Networks",
|
168 |
+
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
169 |
+
img_input.upload(get_grad, inputs = img_input, outputs = [img_output1, img_output2])
|
170 |
|
171 |
demo.launch()
|
172 |
|