Spaces:
Runtime error
Runtime error
Commit ·
ffeadd9
1
Parent(s): e2d9c2e
Upload app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ def image_classifier(input_image, top_classes=3, show_cam=True, target_layers=[2
|
|
| 69 |
|
| 70 |
return outputs, confidences
|
| 71 |
|
| 72 |
-
|
| 73 |
demo1 = gr.Interface(
|
| 74 |
fn=image_classifier,
|
| 75 |
inputs=[
|
|
@@ -83,7 +83,7 @@ demo1 = gr.Interface(
|
|
| 83 |
info="Set Transparency of CAMs")
|
| 84 |
],
|
| 85 |
outputs=[gr.Gallery(label="Output Images", columns=2, rows=2), gr.Label(label='Top Classes')],
|
| 86 |
-
examples=
|
| 87 |
)
|
| 88 |
|
| 89 |
|
|
|
|
| 69 |
|
| 70 |
return outputs, confidences
|
| 71 |
|
| 72 |
+
examples = [["cat.jpg", 0.5, -1], ["dog.jpg", 0.5, -1]]
|
| 73 |
demo1 = gr.Interface(
|
| 74 |
fn=image_classifier,
|
| 75 |
inputs=[
|
|
|
|
| 83 |
info="Set Transparency of CAMs")
|
| 84 |
],
|
| 85 |
outputs=[gr.Gallery(label="Output Images", columns=2, rows=2), gr.Label(label='Top Classes')],
|
| 86 |
+
examples=examples
|
| 87 |
)
|
| 88 |
|
| 89 |
|