OmerFarooq commited on
Commit
56f9aab
1 Parent(s): 38cb2e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,8 +151,8 @@ def get_grad(img):
151
 
152
  demo = gr.Interface(
153
  fn = get_grad,
154
- inputs = gr.Image(type = "pil", shape = (224,224), width = 320, height = 320),
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
  )
 
151
 
152
  demo = gr.Interface(
153
  fn = get_grad,
154
+ inputs = gr.Image(type = "pil", shape = (224,224)),
155
+ outputs = [gr.Image(type = "numpy", height = 320, label = "Grad_CAM w.r.t cat"), gr.Image(type = "numpy", 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
  )