reab5555 commited on
Commit
1b7ed19
·
verified ·
1 Parent(s): 0e007bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- output_components.append(with gr.Tab(label='Transcript', visible=True):
39
- transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True))
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
- output_components.append(
109
- with gr.Tab(label='Transcript', visible=True):
110
- gr.Textbox(label="Transcript", lines=10, visible=True))
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):