Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,10 @@ def create_interface():
|
|
25 |
|
26 |
with gr.Row():
|
27 |
input_file = gr.File(label="Upload File (TXT, PDF, or Video)")
|
28 |
-
|
|
|
|
|
|
|
29 |
|
30 |
with gr.Column():
|
31 |
progress = gr.Progress()
|
@@ -67,9 +70,6 @@ def create_interface():
|
|
67 |
outputs=[status_text, execution_time, detected_language] + charts_and_explanations
|
68 |
)
|
69 |
|
70 |
-
if example_image is not None:
|
71 |
-
example_button.attach_image(example_image)
|
72 |
-
|
73 |
return iface
|
74 |
|
75 |
iface = create_interface()
|
|
|
25 |
|
26 |
with gr.Row():
|
27 |
input_file = gr.File(label="Upload File (TXT, PDF, or Video)")
|
28 |
+
with gr.Column():
|
29 |
+
example_button = gr.Button("Use Example Video")
|
30 |
+
if example_image is not None:
|
31 |
+
gr.Image(value=example_image, label="Example Video Preview")
|
32 |
|
33 |
with gr.Column():
|
34 |
progress = gr.Progress()
|
|
|
70 |
outputs=[status_text, execution_time, detected_language] + charts_and_explanations
|
71 |
)
|
72 |
|
|
|
|
|
|
|
73 |
return iface
|
74 |
|
75 |
iface = create_interface()
|