Spaces:
Runtime error
Runtime error
OmerFarooq
commited on
Commit
•
b61f228
1
Parent(s):
88f95a5
Update app.py
Browse files
app.py
CHANGED
@@ -157,5 +157,13 @@ demo = gr.Interface(
|
|
157 |
description = "Visual Explanations from Deep Networks",
|
158 |
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
159 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
demo.launch()
|
161 |
|
|
|
157 |
description = "Visual Explanations from Deep Networks",
|
158 |
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
159 |
)
|
160 |
+
|
161 |
+
with gr.Blocks() as demo:
|
162 |
+
with gr.Row().style(equal_height=True):
|
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 |
|