Spaces:
Runtime error
Runtime error
Fixes GradioUnusedKwargWarning: You have unused kwarg parameters
Browse files
app.py
CHANGED
@@ -169,15 +169,15 @@ inference_app = gr.Interface(
|
|
169 |
inputs=[
|
170 |
# This accepts the image after resizing it to 32x32 which is what our model expects
|
171 |
gr.Image(shape=(32, 32)),
|
172 |
-
gr.Number(value=3, maximum=10, minimum=1,
|
173 |
gr.Checkbox(True, label="Show GradCAM Image"),
|
174 |
gr.Dropdown(model_layer_names, value="layer3_x", label="Visulalization Layer from Model"),
|
175 |
# How much should the image be overlayed on the original image
|
176 |
gr.Slider(0, 1, 0.6, label="Image Overlay Factor"),
|
177 |
gr.Checkbox(True, label="Show Misclassified Images?"),
|
178 |
-
gr.Slider(value=10, maximum=25, minimum=5, step=5.0,
|
179 |
gr.Checkbox(True, label="Visulize GradCAM for Misclassified images?"),
|
180 |
-
gr.Slider(value=10, maximum=25, minimum=5, step=5.0,
|
181 |
],
|
182 |
outputs=[
|
183 |
gr.Label(label="Confidences", container=True, show_label=True),
|
|
|
169 |
inputs=[
|
170 |
# This accepts the image after resizing it to 32x32 which is what our model expects
|
171 |
gr.Image(shape=(32, 32)),
|
172 |
+
gr.Number(value=3, maximum=10, minimum=1, precision=0, label="#Classes to show"),
|
173 |
gr.Checkbox(True, label="Show GradCAM Image"),
|
174 |
gr.Dropdown(model_layer_names, value="layer3_x", label="Visulalization Layer from Model"),
|
175 |
# How much should the image be overlayed on the original image
|
176 |
gr.Slider(0, 1, 0.6, label="Image Overlay Factor"),
|
177 |
gr.Checkbox(True, label="Show Misclassified Images?"),
|
178 |
+
gr.Slider(value=10, maximum=25, minimum=5, step=5.0, label="#Misclassified images to show"),
|
179 |
gr.Checkbox(True, label="Visulize GradCAM for Misclassified images?"),
|
180 |
+
gr.Slider(value=10, maximum=25, minimum=5, step=5.0, label="#GradCAM images to show"),
|
181 |
],
|
182 |
outputs=[
|
183 |
gr.Label(label="Confidences", container=True, show_label=True),
|