Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,7 @@ def predict(inp):
|
|
| 19 |
import gradio as gr
|
| 20 |
|
| 21 |
gr.Interface(fn=predict,
|
| 22 |
-
inputs=gr.
|
| 23 |
-
outputs=gr.
|
| 24 |
examples=["lion.jpg", "cheetah.jpg"],
|
| 25 |
-
theme="default",
|
| 26 |
css=".footer{display:none !important}").launch()
|
|
|
|
| 19 |
import gradio as gr
|
| 20 |
|
| 21 |
gr.Interface(fn=predict,
|
| 22 |
+
inputs=gr.Image(type="pil"),
|
| 23 |
+
outputs=gr.Label(num_top_classes=3),
|
| 24 |
examples=["lion.jpg", "cheetah.jpg"],
|
|
|
|
| 25 |
css=".footer{display:none !important}").launch()
|