MadhurGarg commited on
Commit
ca416ec
·
1 Parent(s): f49e065

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ demo_1 = gr.Interface(
80
  info="How many top classes do you want to see?"),
81
  gr.Checkbox(label="Enable GradCAM", value=True, info="Do you want to see GradCAM Images?"),
82
  gr.CheckboxGroup(["-5","-4", "-3", "-2", "-1"], value=["-2", "-1"], label="Network Layers", type='index',
83
- info="Which layer(s) GradCAM do you want to visualize?",),
84
  gr.Slider(0, 1, value=0.5, label="Transparency", step=0.1,
85
  info="Set Transparency of CAMs")
86
  ],
@@ -105,7 +105,7 @@ def show_incorrect(num_examples=10):
105
  demo_2 = gr.Interface(
106
  fn=show_incorrect,
107
  inputs=[
108
- gr.Number(value=10, minimum=1, maximum=50, label="Input number(s) of images", precision=0,
109
  info="How many misclassified examples do you want to view? (max 50)")
110
  ],
111
  outputs=[gr.Gallery(label="Misclassified Images (Actual / Predicted)", columns=5)]
 
80
  info="How many top classes do you want to see?"),
81
  gr.Checkbox(label="Enable GradCAM", value=True, info="Do you want to see GradCAM Images?"),
82
  gr.CheckboxGroup(["-5","-4", "-3", "-2", "-1"], value=["-2", "-1"], label="Network Layers", type='index',
83
+ info="On which layer do you want to see GradCAM?",),
84
  gr.Slider(0, 1, value=0.5, label="Transparency", step=0.1,
85
  info="Set Transparency of CAMs")
86
  ],
 
105
  demo_2 = gr.Interface(
106
  fn=show_incorrect,
107
  inputs=[
108
+ gr.Number(value=10, minimum=1, maximum=50, label="Number of images", precision=0,
109
  info="How many misclassified examples do you want to view? (max 50)")
110
  ],
111
  outputs=[gr.Gallery(label="Misclassified Images (Actual / Predicted)", columns=5)]