Spaces:
Sleeping
Sleeping
Commit
·
573e9d8
1
Parent(s):
48bfd0d
change to list
Browse files
app.py
CHANGED
|
@@ -3,5 +3,7 @@ import gradio as gr
|
|
| 3 |
def image_classifier(inp):
|
| 4 |
return {'cat': 0.3, 'dog': 0.7}
|
| 5 |
|
| 6 |
-
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label", examples="examples")
|
|
|
|
|
|
|
| 7 |
demo.launch()
|
|
|
|
| 3 |
def image_classifier(inp):
|
| 4 |
return {'cat': 0.3, 'dog': 0.7}
|
| 5 |
|
| 6 |
+
#demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label", examples="examples")
|
| 7 |
+
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label",
|
| 8 |
+
examples="examples/negative001.jpg examples/negative002.jpg".split())
|
| 9 |
demo.launch()
|