Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,9 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
35 |
|
36 |
output_components.append(f"Completed in {int(execution_time)} seconds.")
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
for i, (speaker_id, speaker_charts) in enumerate(charts.items(), start=1):
|
42 |
print(speaker_id)
|
43 |
speaker_explanations = explanations[speaker_id]
|
@@ -105,9 +105,9 @@ with gr.Blocks() as iface:
|
|
105 |
execution_box = gr.Textbox(label="Execution Info", value="N/A", lines=1)
|
106 |
output_components.append(execution_box)
|
107 |
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
|
112 |
for i in range(3): # Assuming maximum of 3 speakers
|
113 |
with gr.Tab(label=f'Speaker {i+1}', visible=True):
|
|
|
35 |
|
36 |
output_components.append(f"Completed in {int(execution_time)} seconds.")
|
37 |
|
38 |
+
transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True))
|
39 |
+
output_components.append(transcript_output):
|
40 |
+
|
41 |
for i, (speaker_id, speaker_charts) in enumerate(charts.items(), start=1):
|
42 |
print(speaker_id)
|
43 |
speaker_explanations = explanations[speaker_id]
|
|
|
105 |
execution_box = gr.Textbox(label="Execution Info", value="N/A", lines=1)
|
106 |
output_components.append(execution_box)
|
107 |
|
108 |
+
transcript = gr.Textbox(label="Transcript", lines=10, visible=True)
|
109 |
+
output_components.append(transcript)
|
110 |
+
|
111 |
|
112 |
for i in range(3): # Assuming maximum of 3 speakers
|
113 |
with gr.Tab(label=f'Speaker {i+1}', visible=True):
|