Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,7 +153,7 @@ def get_grad(img):
|
|
| 153 |
demo = gr.Interface(
|
| 154 |
fn = get_grad,
|
| 155 |
# inputs = gr.Image(type = "pil", shape = (224,224)),
|
| 156 |
-
inputs = gr.Image(type = "pil"
|
| 157 |
outputs = [gr.Image(type = "numpy", width = 640, height = 320, label = "Grad_CAM w.r.t cat"), gr.Image(type = "numpy", width = 640, height = 320, label = "Grad_CAM w.r.t dog"), gr.Textbox(label = 'Prediction', info = '[P of cat, P of dog]')],
|
| 158 |
description = "Visual Explanations from Deep Networks",
|
| 159 |
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|
|
|
|
| 153 |
demo = gr.Interface(
|
| 154 |
fn = get_grad,
|
| 155 |
# inputs = gr.Image(type = "pil", shape = (224,224)),
|
| 156 |
+
inputs = gr.Image(type = "pil"),
|
| 157 |
outputs = [gr.Image(type = "numpy", width = 640, height = 320, label = "Grad_CAM w.r.t cat"), gr.Image(type = "numpy", width = 640, height = 320, label = "Grad_CAM w.r.t dog"), gr.Textbox(label = 'Prediction', info = '[P of cat, P of dog]')],
|
| 158 |
description = "Visual Explanations from Deep Networks",
|
| 159 |
title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
|