Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,12 @@ def predict(img):
|
|
19 |
examples = ['image.jpg']
|
20 |
|
21 |
# Create the Gradio interface
|
22 |
-
interface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
# Enable the queue to handle POST requests
|
25 |
interface.queue(api_open=True)
|
|
|
19 |
examples = ['image.jpg']
|
20 |
|
21 |
# Create the Gradio interface
|
22 |
+
interface = gr.Interface(
|
23 |
+
fn=predict,
|
24 |
+
inputs=gr.components.Image(),
|
25 |
+
outputs=gr.components.Label(num_top_classes=3),
|
26 |
+
examples=examples
|
27 |
+
)
|
28 |
|
29 |
# Enable the queue to handle POST requests
|
30 |
interface.queue(api_open=True)
|