Rivalcoder commited on
Commit
789030f
·
1 Parent(s): 9775f6e

Add New Version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # Change from gr.inputs.Video to gr.Video in Gradio 3.x
182
  interface = gr.Interface(
183
  fn=process_gradio_video,
184
- inputs=gr.Video(type="file"), # 'file' ensures that Gradio handles all formats including WebM
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