amitkayal commited on
Commit
ee1547b
·
1 Parent(s): a898d5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -93,8 +93,12 @@ demo = gr.Interface(
93
  gr.Radio(["Yes", "No"], label="View misclassified images?"),
94
  gr.Number(label="Number of misclassified images to view", default=5, min=1, max=10),
95
  gr.Radio(["Upload New Images", "Example Images"], label="Select images source"),
96
- gr.Image(label="Uploaded image" if "Interface" in gr.__file__ else "Image"),
97
- gr.Button(label="Submit", type="boolean")
 
 
 
 
98
  ],
99
  outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
100
  examples = examples,
 
93
  gr.Radio(["Yes", "No"], label="View misclassified images?"),
94
  gr.Number(label="Number of misclassified images to view", default=5, min=1, max=10),
95
  gr.Radio(["Upload New Images", "Example Images"], label="Select images source"),
96
+ gr.Image(shape=(32, 32), label="Input Image" if "Interface" in gr.__file__ else "Image"),
97
+ gr.Button(label="Submit", type="boolean"),
98
+ # gr.Image(shape=(32, 32), label="Input Image"),
99
+ # gr.Slider(0, 1, value = 0.5, label="Opacity of GradCAM"),
100
+ gr.Slider(-2, -1, value = -2, step=1, label="Which Layer?")
101
+
102
  ],
103
  outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
104
  examples = examples,