Spaces:
Runtime error
Runtime error
Commit
·
89a30aa
1
Parent(s):
1fbd3ed
example re-added
Browse files- a_bear.jpg +0 -0
- app.py +4 -0
a_bear.jpg
ADDED
![]() |
app.py
CHANGED
@@ -15,6 +15,8 @@ def predict(img):
|
|
15 |
|
16 |
title = "hey bear"
|
17 |
description = "upload an image.. any image... but it should be an image of a bear"
|
|
|
|
|
18 |
|
19 |
gr.Interface(
|
20 |
fn=predict,
|
@@ -22,4 +24,6 @@ gr.Interface(
|
|
22 |
outputs=gr.outputs.Label(num_top_classes=3),
|
23 |
title=title,
|
24 |
description=description,
|
|
|
|
|
25 |
).launch()
|
|
|
15 |
|
16 |
title = "hey bear"
|
17 |
description = "upload an image.. any image... but it should be an image of a bear"
|
18 |
+
interpretation = "default"
|
19 |
+
examples = ["a_bear.jpg"]
|
20 |
|
21 |
gr.Interface(
|
22 |
fn=predict,
|
|
|
24 |
outputs=gr.outputs.Label(num_top_classes=3),
|
25 |
title=title,
|
26 |
description=description,
|
27 |
+
interpretation=interpretation,
|
28 |
+
examples=examples,
|
29 |
).launch()
|