Spaces:
Runtime error
Runtime error
disallow webcam
Browse files
app.py
CHANGED
@@ -16,7 +16,9 @@ default_image = Image.open("demo.jpeg")
|
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
fn=segment_and_show,
|
19 |
-
inputs=components.Image(
|
|
|
|
|
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.",
|
|
|
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.",
|