Spaces:
Sleeping
Sleeping
Commit
•
8cb6f34
1
Parent(s):
7845ce2
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ example2 = './dog.jpg'
|
|
56 |
examples = [[example1, 0.5, -1], [example2, 0.5, -1]]
|
57 |
gradio_app = gr.Interface(
|
58 |
inference,
|
59 |
-
inputs = [gr.Image(
|
60 |
label="Which Layer?")],
|
61 |
outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
|
62 |
title = title,
|
|
|
56 |
examples = [[example1, 0.5, -1], [example2, 0.5, -1]]
|
57 |
gradio_app = gr.Interface(
|
58 |
inference,
|
59 |
+
inputs = [gr.Image((width=32, height=32), label="Input Image"), gr.Slider(0, 1, value = 0.5, label="Opacity of GradCAM"), gr.Slider(-2, -1, value = -2, step=1,
|
60 |
label="Which Layer?")],
|
61 |
outputs = [gr.Label(num_top_classes=3), gr.Image(shape=(32, 32), label="Output").style(width=128, height=128)],
|
62 |
title = title,
|