OmerFarooq commited on
Commit
38cb2e9
1 Parent(s): 0c7cb71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -151,9 +151,8 @@ def get_grad(img):
151
 
152
  demo = gr.Interface(
153
  fn = get_grad,
154
- with gr.Row():
155
- inputs = gr.Image(type = "pil", shape = (224,224), width = 320, height = 320),
156
- 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]')],
157
  description = "Visual Explanations from Deep Networks",
158
  title = "Gradient-Weighted Class Activation Mapping (Grad-CAM)"
159
  )
 
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
  )