Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
65 |
|
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=5, 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
|
|
|
65 |
|
66 |
# Create the Gradio demo
|
67 |
demo = gr.Interface(fn=predict, # mapping function from input to output
|
68 |
+
inputs= gr.Image(sources=["upload"], type='pil'), # what are the inputs?
|
69 |
outputs=[gr.Label(num_top_classes=5, 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
|