Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
23 |
|
24 |
-
progress(0.
|
25 |
results = process_input(transcription, llm)
|
26 |
-
progress(0.
|
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="
|
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 |
|