Spaces:
Runtime error
Runtime error
Commit
·
0196ebc
1
Parent(s):
fef0820
let's deploy to huggingface spaces6
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def predict(image):
|
|
34 |
|
35 |
|
36 |
image = gr.inputs.Image(shape=(192, 192))
|
37 |
-
label = gr.outputs.Label()
|
38 |
title = "Fruits and vegetables Classifier"
|
39 |
examples = ['tomato.jpg', 'lemon.jpg', 'apple.jpg']
|
40 |
|
41 |
interface = gr.Interface(fn=predict, inputs=image,
|
42 |
-
outputs=label, examples=examples, title=title).launch()
|
|
|
34 |
|
35 |
|
36 |
image = gr.inputs.Image(shape=(192, 192))
|
37 |
+
label = gr.outputs.Label(num_top_classes=3)
|
38 |
title = "Fruits and vegetables Classifier"
|
39 |
examples = ['tomato.jpg', 'lemon.jpg', 'apple.jpg']
|
40 |
|
41 |
interface = gr.Interface(fn=predict, inputs=image,
|
42 |
+
outputs=label, examples=examples, title=title, enable_queue=True).launch()
|