reab5555 commited on
Commit
38a38b5
·
verified ·
1 Parent(s): f0dda4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,11 +19,11 @@ def analyze_video(video_path, max_speakers, progress=gr.Progress()):
19
 
20
  progress(0.2, desc="Starting transcription and diarization")
21
  transcription = diarize_audio(video_path, max_speakers)
22
- progress(0.6, desc="Transcription and diarization complete.")
23
 
24
- progress(0.7, desc="Processing transcription")
25
  results = process_input(transcription, llm)
26
- progress(0.8, desc="Transcription processing complete.")
27
 
28
  progress(0.9, desc="Generating charts")
29
  charts, explanations = create_charts(results)
@@ -80,7 +80,7 @@ with gr.Blocks() as iface:
80
  ])
81
 
82
  # Add execution info and transcript components
83
- execution_info_box = gr.Textbox(label="Execution Information", value="Waiting for analysis...", lines=2)
84
  transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True)
85
  output_components.extend([execution_info_box, transcript_output])
86
 
 
19
 
20
  progress(0.2, desc="Starting transcription and diarization")
21
  transcription = diarize_audio(video_path, max_speakers)
22
+ progress(0.5, desc="Transcription and diarization complete.")
23
 
24
+ progress(0.6, desc="Processing transcription")
25
  results = process_input(transcription, llm)
26
+ progress(0.7, desc="Transcription processing complete.")
27
 
28
  progress(0.9, desc="Generating charts")
29
  charts, explanations = create_charts(results)
 
80
  ])
81
 
82
  # Add execution info and transcript components
83
+ execution_info_box = gr.Textbox(label="Execution Information", value="N/A", lines=1)
84
  transcript_output = gr.Textbox(label="Transcript", lines=10, visible=True)
85
  output_components.extend([execution_info_box, transcript_output])
86