Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,10 +16,13 @@ examples = ['yellow_banana.jpg', 'green_banana.jpg', 'banana_with_brown_spots.jp
|
|
16 |
interpretation='default'
|
17 |
enable_queue=True
|
18 |
|
19 |
-
|
20 |
fn=predict,
|
21 |
-
inputs=gr.Image(
|
22 |
-
outputs=gr.
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
16 |
interpretation='default'
|
17 |
enable_queue=True
|
18 |
|
19 |
+
gr.Interface(
|
20 |
fn=predict,
|
21 |
+
inputs=gr.inputs.Image(shape=(512, 512), sources=["upload", "webcam", "clipboard"]),
|
22 |
+
outputs=gr.outputs.Label(num_top_classes=4),
|
23 |
+
title=title,
|
24 |
+
description=description,
|
25 |
+
examples=examples,
|
26 |
+
interpretation=interpretation,
|
27 |
+
enable_queue=enable_queue
|
28 |
+
).launch()
|