jschwab21 commited on
Commit
25c9e66
·
verified ·
1 Parent(s): 1503650

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import gradio as gr
2
- import os
3
 
4
  def save_and_display_video(video_file):
5
  if video_file is None:
@@ -19,7 +18,7 @@ def save_and_display_video(video_file):
19
 
20
  with gr.Blocks() as demo:
21
  with gr.Column():
22
- video_file = gr.UploadButton(label="Upload Video File", file_types=["mp4", "avi", "mov"], interactive=True)
23
  output_video = gr.Video()
24
  output_message = gr.Textbox(label="Output Message")
25
  submit_button = gr.Button("Display Video")
 
1
  import gradio as gr
 
2
 
3
  def save_and_display_video(video_file):
4
  if video_file is None:
 
18
 
19
  with gr.Blocks() as demo:
20
  with gr.Column():
21
+ video_file = gr.File(label="Upload Video File", type="binary", file_types="video", interactive=True)
22
  output_video = gr.Video()
23
  output_message = gr.Textbox(label="Output Message")
24
  submit_button = gr.Button("Display Video")