Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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")
|