Spaces:
Sleeping
Sleeping
Rivalcoder
commited on
Commit
·
789030f
1
Parent(s):
9775f6e
Add New Version
Browse files
app.py
CHANGED
@@ -178,10 +178,10 @@ def gradio_interface():
|
|
178 |
# This function now accepts WebM files and other video formats.
|
179 |
return process_video(video_file)
|
180 |
|
181 |
-
#
|
182 |
interface = gr.Interface(
|
183 |
fn=process_gradio_video,
|
184 |
-
inputs=gr.Video(
|
185 |
outputs="json"
|
186 |
)
|
187 |
|
|
|
178 |
# This function now accepts WebM files and other video formats.
|
179 |
return process_video(video_file)
|
180 |
|
181 |
+
# Remove the `type` argument from `gr.Video()`
|
182 |
interface = gr.Interface(
|
183 |
fn=process_gradio_video,
|
184 |
+
inputs=gr.Video(), # This will automatically handle file uploads
|
185 |
outputs="json"
|
186 |
)
|
187 |
|