amitkayal commited on
Commit
405db4f
·
1 Parent(s): c1b499f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -94,21 +94,19 @@ demo = gr.Interface(
94
  # title = title,
95
  # description = description,
96
  # examples = examples,
 
 
 
97
  fn=gradio_callback, # We'll add the function later after defining all functions, # We'll add the function later after defining all functions
98
  inputs=[
99
  gr.Radio(["Yes", "No"], label="View GradCAM images?"),
100
  gr.Number(label="Number of GradCAM images to view", default=5, max=10),
101
- # gr.Textbox(label="Layer name for GradCAM visualization", default="layer4", lines=1),
102
  gr.Slider(-2, -1, value = -2, step=1, label="Which Layer?"),
103
  gr.Slider(minimum=0.1, maximum=1.0, step=0.1, default=0.5, label="Opacity"),
104
  gr.Radio(["Yes", "No"], label="View misclassified images?"),
105
  gr.Number(label="Number of misclassified images to view", default=5, min=1, max=10),
106
  gr.Image(shape=(32, 32), label="Input Image"),
107
- gr.Button(label="Submit", type="boolean"),
108
- # gr.Image(shape=(32, 32), label="Input Image"),
109
- # gr.Slider(0, 1, value = 0.5, label="Opacity of GradCAM"),
110
-
111
-
112
  ],
113
  outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
114
  examples = examples,
 
94
  # title = title,
95
  # description = description,
96
  # examples = examples,
97
+ title = title,
98
+ escription = description,
99
+ # examples = examples,
100
  fn=gradio_callback, # We'll add the function later after defining all functions, # We'll add the function later after defining all functions
101
  inputs=[
102
  gr.Radio(["Yes", "No"], label="View GradCAM images?"),
103
  gr.Number(label="Number of GradCAM images to view", default=5, max=10),
 
104
  gr.Slider(-2, -1, value = -2, step=1, label="Which Layer?"),
105
  gr.Slider(minimum=0.1, maximum=1.0, step=0.1, default=0.5, label="Opacity"),
106
  gr.Radio(["Yes", "No"], label="View misclassified images?"),
107
  gr.Number(label="Number of misclassified images to view", default=5, min=1, max=10),
108
  gr.Image(shape=(32, 32), label="Input Image"),
109
+ gr.Button(label="Submit", type="boolean")
 
 
 
 
110
  ],
111
  outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
112
  examples = examples,