Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,16 +16,10 @@ def video_stream():
|
|
16 |
|
17 |
# Create Gradio App
|
18 |
with gr.Blocks() as demo:
|
19 |
-
gr.Markdown("## 🎥 Webcam Stream with Output to a Separate Canvas")
|
20 |
-
|
21 |
-
#webcam_feed = gr.Video(label="Live Webcam", source="webcam", streaming=True)
|
22 |
-
|
23 |
-
webcam_feed = gr.Video(label="Live Webcam", format="mp4", streaming=True)
|
24 |
-
|
25 |
canvas_output = gr.Image(label="Canvas - Output Stream")
|
26 |
-
|
27 |
start_button = gr.Button("Start Streaming")
|
28 |
-
|
29 |
start_button.click(fn=video_stream, inputs=[], outputs=[canvas_output])
|
30 |
|
31 |
demo.launch(share=True)
|
|
|
16 |
|
17 |
# Create Gradio App
|
18 |
with gr.Blocks() as demo:
|
19 |
+
gr.Markdown("## 🎥 Webcam Stream with Output to a Separate Canvas")
|
20 |
+
webcam_feed = gr.Video(label="Live Webcam", format="mp4", streaming=True)
|
|
|
|
|
|
|
|
|
21 |
canvas_output = gr.Image(label="Canvas - Output Stream")
|
|
|
22 |
start_button = gr.Button("Start Streaming")
|
|
|
23 |
start_button.click(fn=video_stream, inputs=[], outputs=[canvas_output])
|
24 |
|
25 |
demo.launch(share=True)
|