Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,11 @@ def predict(inp):
|
|
21 |
return confidences
|
22 |
|
23 |
# define the interface
|
24 |
-
gr.Interface(fn=predict,
|
25 |
inputs=gr.inputs.Image(type="pil"),
|
26 |
outputs=gr.outputs.Label(num_top_classes=3),
|
27 |
examples=["lion.jpg", "cheetah.jpg"],
|
28 |
-
)
|
|
|
|
|
|
|
|
21 |
return confidences
|
22 |
|
23 |
# define the interface
|
24 |
+
demo = gr.Interface(fn=predict,
|
25 |
inputs=gr.inputs.Image(type="pil"),
|
26 |
outputs=gr.outputs.Label(num_top_classes=3),
|
27 |
examples=["lion.jpg", "cheetah.jpg"],
|
28 |
+
)
|
29 |
+
|
30 |
+
# launch
|
31 |
+
demo.launch()
|