Spaces:
Build error
Build error
Commit ·
d3e8879
1
Parent(s): db8139e
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ demo = gr.Interface(fn=predict, # mapping function from input to output
|
|
| 69 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
| 70 |
outputs=[gr.Label(num_top_classes=2, label="Predictions"), # what are the outputs?
|
| 71 |
gr.Number(label="Prediction time (s)"),
|
| 72 |
-
gr.Image(
|
| 73 |
# Create examples list from "examples/" directory
|
| 74 |
examples=example_list,
|
| 75 |
title=title,
|
|
|
|
| 69 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
| 70 |
outputs=[gr.Label(num_top_classes=2, label="Predictions"), # what are the outputs?
|
| 71 |
gr.Number(label="Prediction time (s)"),
|
| 72 |
+
gr.Image()], # our fn has two outputs, therefore we have two outputs
|
| 73 |
# Create examples list from "examples/" directory
|
| 74 |
examples=example_list,
|
| 75 |
title=title,
|