Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,24 +5,20 @@ import os
|
|
5 |
|
6 |
def create_interface():
|
7 |
example_video_path = "examples/Scenes.From.A.Marriage.US.mp4"
|
8 |
-
|
9 |
with gr.Blocks() as iface:
|
10 |
gr.Markdown("# Personality Analysis Classification")
|
11 |
gr.Markdown("Upload a Video, TXT, or PDF file or use the example video.")
|
12 |
-
|
13 |
-
with gr.
|
14 |
-
gr.
|
15 |
-
|
16 |
-
|
17 |
-
with gr.
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
with gr.Column():
|
23 |
-
example_video = gr.Video(value=example_video_path, label="Example Video Preview")
|
24 |
-
example_button = gr.Button("Use Example Video", size="lg")
|
25 |
-
|
26 |
with gr.Column():
|
27 |
progress = gr.Progress()
|
28 |
status_text = gr.Textbox(label="Status")
|
|
|
5 |
|
6 |
def create_interface():
|
7 |
example_video_path = "examples/Scenes.From.A.Marriage.US.mp4"
|
8 |
+
|
9 |
with gr.Blocks() as iface:
|
10 |
gr.Markdown("# Personality Analysis Classification")
|
11 |
gr.Markdown("Upload a Video, TXT, or PDF file or use the example video.")
|
12 |
+
|
13 |
+
with gr.Row():
|
14 |
+
with gr.Column(scale=1):
|
15 |
+
input_file = gr.File(label="Upload File (TXT, PDF, or Video)")
|
16 |
+
|
17 |
+
with gr.Column(scale=1):
|
18 |
+
# Load the video directly when creating the interface
|
19 |
+
example_video = gr.Video(value=example_video_path, label="Example Video Preview")
|
20 |
+
example_button = gr.Button("Use Example Video")
|
21 |
+
|
|
|
|
|
|
|
|
|
22 |
with gr.Column():
|
23 |
progress = gr.Progress()
|
24 |
status_text = gr.Textbox(label="Status")
|