Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,9 @@ with gr.Blocks() as demo:
|
|
22 |
upload_btn.click(analyze_and_decide, inputs=upload_video,
|
23 |
outputs=[upload_output, upload_pred, upload_replay])
|
24 |
|
25 |
-
with gr.Tab("Live Capture"):
|
26 |
-
|
|
|
27 |
live_output = gr.Textbox(label="Decision")
|
28 |
live_pred = gr.Video(label="Predicted Trajectory")
|
29 |
live_replay = gr.Video(label="Replay Video")
|
|
|
22 |
upload_btn.click(analyze_and_decide, inputs=upload_video,
|
23 |
outputs=[upload_output, upload_pred, upload_replay])
|
24 |
|
25 |
+
with gr.Tab("Live Capture (Record & Upload)"):
|
26 |
+
gr.Markdown("🎥 Record a video using your webcam and upload it here.")
|
27 |
+
live_video = gr.Video(label="Record and Upload Live Delivery")
|
28 |
live_output = gr.Textbox(label="Decision")
|
29 |
live_pred = gr.Video(label="Predicted Trajectory")
|
30 |
live_replay = gr.Video(label="Replay Video")
|