Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,16 +52,16 @@ demo = gr.Interface(
|
|
52 |
# examples = examples,
|
53 |
fn=None, # We'll add the function later after defining all functions
|
54 |
inputs=[
|
55 |
-
gr.
|
56 |
-
gr.
|
57 |
-
gr.
|
58 |
-
gr.
|
59 |
-
gr.
|
60 |
-
gr.
|
61 |
-
gr.
|
62 |
-
gr.
|
63 |
-
gr.
|
64 |
-
|
65 |
outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
|
66 |
live=True
|
67 |
)
|
|
|
52 |
# examples = examples,
|
53 |
fn=None, # We'll add the function later after defining all functions
|
54 |
inputs=[
|
55 |
+
gr.inputs.Radio(["Yes", "No"], label="View GradCAM images?"),
|
56 |
+
gr.inputs.Number(label="Number of GradCAM images to view", default=5, min=1, max=10),
|
57 |
+
gr.inputs.Textbox(label="Layer name for GradCAM visualization", default="layer4", lines=1),
|
58 |
+
gr.inputs.Slider(minimum=0.1, maximum=1.0, step=0.1, default=0.5, label="Opacity"),
|
59 |
+
gr.inputs.Radio(["Yes", "No"], label="View misclassified images?"),
|
60 |
+
gr.inputs.Number(label="Number of misclassified images to view", default=5, min=1, max=10),
|
61 |
+
gr.inputs.Radio(["Upload New Images", "Example Images"], label="Select images source"),
|
62 |
+
gr.inputs.Image(label="Uploaded image" if "Interface" in gr.__file__ else "Image"),
|
63 |
+
gr.inputs.Button(label="Submit", type="boolean")
|
64 |
+
],
|
65 |
outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
|
66 |
live=True
|
67 |
)
|