Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,10 @@ examples = ['yellow_banana.jpg', 'green_banana.jpg', 'banana_with_brown_spots.jp
|
|
| 16 |
interpretation='default'
|
| 17 |
enable_queue=True
|
| 18 |
|
| 19 |
-
gr.Interface(
|
| 20 |
-
fn=
|
| 21 |
-
inputs=gr.
|
| 22 |
-
outputs=gr.
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
interpretation=interpretation,
|
| 27 |
-
enable_queue=enable_queue
|
| 28 |
-
).launch()
|
|
|
|
| 16 |
interpretation='default'
|
| 17 |
enable_queue=True
|
| 18 |
|
| 19 |
+
app = gr.Interface(
|
| 20 |
+
fn=show_image,
|
| 21 |
+
inputs=gr.Image(label="Input Image Component"),
|
| 22 |
+
outputs=gr.Image(label="Output Image Component", value=image) # value= parameter set for output image component
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
app.launch()
|
|
|
|
|
|
|
|
|