Spaces:
Sleeping
Sleeping
Ulf Hammerschmied commited on
Commit ·
21a9ddb
1
Parent(s): a8beb73
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,8 @@ description = ("A bear classifier trained on black/grizzly/teddy bear images dow
|
|
| 18 |
"Created as a demo for Gradio and HuggingFace Spaces.")
|
| 19 |
examples = ['black.jpg', 'grizzly.jpg', 'teddy.jpg']
|
| 20 |
grif = gr.Interface(fn=predict,
|
| 21 |
-
inputs="
|
| 22 |
-
outputs=
|
| 23 |
title=title,
|
| 24 |
description=description,
|
| 25 |
examples=examples)
|
|
|
|
| 18 |
"Created as a demo for Gradio and HuggingFace Spaces.")
|
| 19 |
examples = ['black.jpg', 'grizzly.jpg', 'teddy.jpg']
|
| 20 |
grif = gr.Interface(fn=predict,
|
| 21 |
+
inputs=gr.Image(type="pil"),
|
| 22 |
+
outputs=gr.Label(num_top_classes=3),
|
| 23 |
title=title,
|
| 24 |
description=description,
|
| 25 |
examples=examples)
|