Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,8 @@ def create_interface():
|
|
| 69 |
with gr.Column():
|
| 70 |
video_input = gr.Video(
|
| 71 |
label="π Upload Your Video",
|
| 72 |
-
|
|
|
|
| 73 |
format="mp4" # Use mp4 format for compatibility
|
| 74 |
)
|
| 75 |
predict_button = gr.Button("π Run Prediction")
|
|
@@ -84,10 +85,10 @@ def create_interface():
|
|
| 84 |
with gr.Column():
|
| 85 |
video_recorder = gr.Video(
|
| 86 |
label="π₯ Record Your Video",
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
recording_height
|
| 91 |
)
|
| 92 |
predict_button_rec = gr.Button("π Run Prediction on Recorded Video")
|
| 93 |
prediction_output_rec = gr.Textbox(
|
|
|
|
| 69 |
with gr.Column():
|
| 70 |
video_input = gr.Video(
|
| 71 |
label="π Upload Your Video",
|
| 72 |
+
source="upload", # Correct parameter name
|
| 73 |
+
type="filepath", # Ensure file path is returned
|
| 74 |
format="mp4" # Use mp4 format for compatibility
|
| 75 |
)
|
| 76 |
predict_button = gr.Button("π Run Prediction")
|
|
|
|
| 85 |
with gr.Column():
|
| 86 |
video_recorder = gr.Video(
|
| 87 |
label="π₯ Record Your Video",
|
| 88 |
+
source="webcam", # Correct parameter name
|
| 89 |
+
type="filepath", # Ensure file path is returned
|
| 90 |
+
format="mp4" # Use mp4 format for compatibility
|
| 91 |
+
# Removed 'recording_width' and 'recording_height'
|
| 92 |
)
|
| 93 |
predict_button_rec = gr.Button("π Run Prediction on Recorded Video")
|
| 94 |
prediction_output_rec = gr.Textbox(
|