Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -164,9 +164,10 @@ with gr.Blocks(css=css, title="Video & Image Object Detection by YOLOv5") as dem
|
|
164 |
with gr.Tabs():
|
165 |
with gr.TabItem("Video Detection", elem_classes="tab-item"):
|
166 |
with gr.Row():
|
167 |
-
|
168 |
-
|
169 |
-
|
|
|
170 |
elem_id="video-input"
|
171 |
)
|
172 |
|
|
|
164 |
with gr.Tabs():
|
165 |
with gr.TabItem("Video Detection", elem_classes="tab-item"):
|
166 |
with gr.Row():
|
167 |
+
# Fix: Changed from gr.Video to gr.File to ensure proper upload handling
|
168 |
+
video_input = gr.File(
|
169 |
+
label="Upload Video File",
|
170 |
+
file_types=["video"],
|
171 |
elem_id="video-input"
|
172 |
)
|
173 |
|