Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
74 |
# Create the Gradio demo
|
75 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
76 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
77 |
-
outputs=[gr.Label(num_top_classes=
|
78 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
79 |
# Create examples list from "examples/" directory
|
80 |
#title=title,
|
|
|
74 |
# Create the Gradio demo
|
75 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
76 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
77 |
+
outputs=[gr.Label(num_top_classes=3, label="Predictions"), # what are the outputs?
|
78 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
79 |
# Create examples list from "examples/" directory
|
80 |
#title=title,
|