Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,11 +18,14 @@ enable_queue=True
|
|
18 |
|
19 |
gr.Interface(
|
20 |
fn=predict,
|
21 |
-
inputs=gr.
|
22 |
-
outputs=gr.
|
23 |
title=title,
|
24 |
description=description,
|
25 |
examples=examples,
|
26 |
interpretation=interpretation,
|
27 |
enable_queue=enable_queue
|
28 |
-
).launch()
|
|
|
|
|
|
|
|
18 |
|
19 |
gr.Interface(
|
20 |
fn=predict,
|
21 |
+
inputs=gr.Image(label="Input Image Component", shape=(512, 512), sources=["upload", "webcam", "clipboard"]),
|
22 |
+
outputs=gr.Image(label="Output Image Component", num_top_classes=4),
|
23 |
title=title,
|
24 |
description=description,
|
25 |
examples=examples,
|
26 |
interpretation=interpretation,
|
27 |
enable_queue=enable_queue
|
28 |
+
).launch()
|
29 |
+
|
30 |
+
inputs=gr.Image(label="Input Image Component", width=300),
|
31 |
+
outputs=gr.Image(label="Output Image Component")
|