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