Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,5 +10,5 @@ def image_classifier(image):
|
|
10 |
results[result['label']] = result['score']
|
11 |
return results
|
12 |
|
13 |
-
demo = gr.Interface(fn=image_classifier, inputs=gr.Image(type="pil"), outputs="label")
|
14 |
demo.launch()
|
|
|
10 |
results[result['label']] = result['score']
|
11 |
return results
|
12 |
|
13 |
+
demo = gr.Interface(fn=image_classifier, title = "Interface", examples=["Example1.jpg", "Example2.jpg", "Example3.jpg", "Example4.jpg"], inputs=gr.Image(type="pil"), outputs="label")
|
14 |
demo.launch()
|