Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,8 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
33 |
|
34 |
output_components = [] # transcript
|
35 |
|
|
|
|
|
36 |
with gr.Tab(label='Transcript', visible=True):
|
37 |
transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True)
|
38 |
|
@@ -75,9 +77,6 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
75 |
# Pad with None for any missing speakers
|
76 |
while len(output_components) < 28:
|
77 |
output_components.extend([gr.update(visible=False)] * 9)
|
78 |
-
|
79 |
-
output_components.append(f"Completed in {int(execution_time)} seconds.") # execution info
|
80 |
-
|
81 |
|
82 |
return output_components
|
83 |
|
@@ -104,8 +103,9 @@ with gr.Blocks() as iface:
|
|
104 |
output_components = []
|
105 |
|
106 |
# Add transcript output near the top
|
107 |
-
gr.Textbox(label="Execution Info", value="N/A", lines=1)
|
108 |
-
|
|
|
109 |
with gr.Tab(label='Transcript', visible=True):
|
110 |
transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True)
|
111 |
|
|
|
33 |
|
34 |
output_components = [] # transcript
|
35 |
|
36 |
+
output_components.append(f"Completed in {int(execution_time)} seconds.")
|
37 |
+
|
38 |
with gr.Tab(label='Transcript', visible=True):
|
39 |
transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True)
|
40 |
|
|
|
77 |
# Pad with None for any missing speakers
|
78 |
while len(output_components) < 28:
|
79 |
output_components.extend([gr.update(visible=False)] * 9)
|
|
|
|
|
|
|
80 |
|
81 |
return output_components
|
82 |
|
|
|
103 |
output_components = []
|
104 |
|
105 |
# Add transcript output near the top
|
106 |
+
execution_box = gr.Textbox(label="Execution Info", value="N/A", lines=1)
|
107 |
+
output_components.append(execution_box)
|
108 |
+
|
109 |
with gr.Tab(label='Transcript', visible=True):
|
110 |
transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True)
|
111 |
|