Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -179,9 +179,10 @@ overlay_choices = [x.split('.png')[0] for x in overlay_files]
|
|
179 |
# outputs=webcam)
|
180 |
|
181 |
# demo.launch()
|
|
|
182 |
demo = gr.Interface(
|
183 |
process_image,
|
184 |
-
[gr.
|
185 |
"image",
|
186 |
live=True
|
187 |
)
|
|
|
179 |
# outputs=webcam)
|
180 |
|
181 |
# demo.launch()
|
182 |
+
overlay_file = gr.Dropdown(choices=overlay_choices, value='Blue', label="Select a color")
|
183 |
demo = gr.Interface(
|
184 |
process_image,
|
185 |
+
[gr.Image(sources=["webcam"], streaming=True),overlay_file],
|
186 |
"image",
|
187 |
live=True
|
188 |
)
|