Spaces:
Runtime error
Runtime error
fix webcam
Browse files
app.py
CHANGED
|
@@ -16,9 +16,7 @@ default_image = Image.open("demo.jpeg")
|
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=segment_and_show,
|
| 19 |
-
inputs=components.Image(
|
| 20 |
-
value=default_image, sources=["upload", "webcam", "clipboard"]
|
| 21 |
-
),
|
| 22 |
outputs=components.Image(type="pil"),
|
| 23 |
title="Urban Autonomy Instance Segmentation Demo",
|
| 24 |
description="Upload an image or use the default to see the instance segmentation model in action.",
|
|
|
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=segment_and_show,
|
| 19 |
+
inputs=components.Image(value=default_image, sources=["upload", "clipboard"]),
|
|
|
|
|
|
|
| 20 |
outputs=components.Image(type="pil"),
|
| 21 |
title="Urban Autonomy Instance Segmentation Demo",
|
| 22 |
description="Upload an image or use the default to see the instance segmentation model in action.",
|