Spaces:
Sleeping
Sleeping
updated app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def show_misclassified_images_wrapper(num_images=10, use_gradcam=False, gradcam_
|
|
61 |
|
62 |
return model.show_misclassified_images(num_images, use_gradcam, gradcam_layer, transparency)
|
63 |
|
64 |
-
description1 = "
|
65 |
|
66 |
|
67 |
# Define the full path to the images folder
|
@@ -87,7 +87,7 @@ input_interface = gr.Interface(inference,
|
|
87 |
gr.Slider(-2, -1, value=-2, step=1, label="Which Layer?"),
|
88 |
gr.Slider(1, 10, value=3, step=1, label="How many top confidence classes to be shown?")],
|
89 |
outputs=[gr.Label(),
|
90 |
-
gr.Image(shape=(32, 32), label="Model Prediction").style(width=
|
91 |
description=description1,examples=examples)
|
92 |
|
93 |
description2 = "Displays misclassified image of the model"
|
|
|
61 |
|
62 |
return model.show_misclassified_images(num_images, use_gradcam, gradcam_layer, transparency)
|
63 |
|
64 |
+
description1 = "Test the model's prediction. Currently the model only supports the following classes - plane, car, bird, cat, deer, dog, frog, horse, ship, truck."
|
65 |
|
66 |
|
67 |
# Define the full path to the images folder
|
|
|
87 |
gr.Slider(-2, -1, value=-2, step=1, label="Which Layer?"),
|
88 |
gr.Slider(1, 10, value=3, step=1, label="How many top confidence classes to be shown?")],
|
89 |
outputs=[gr.Label(),
|
90 |
+
gr.Image(shape=(32, 32), label="Model Prediction").style(width=300, height=300)],
|
91 |
description=description1,examples=examples)
|
92 |
|
93 |
description2 = "Displays misclassified image of the model"
|