Spaces:
Sleeping
Sleeping
updating classes
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
66 |
# Create the Gradio demo
|
67 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
68 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
69 |
-
outputs=[gr.Label(num_top_classes=
|
70 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
71 |
# Create examples list from "examples/" directory
|
72 |
examples=example_list,
|
|
|
66 |
# Create the Gradio demo
|
67 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
68 |
inputs=gr.Image(type="pil"), # what are the inputs?
|
69 |
+
outputs=[gr.Label(num_top_classes=10, label="Predictions"), # what are the outputs?
|
70 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
71 |
# Create examples list from "examples/" directory
|
72 |
examples=example_list,
|