Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,9 +39,13 @@ def analyze_video(video_path, max_speakers, progress=gr.Progress()):
|
|
39 |
output_components.append(gr.Textbox(value=transcription, label="Transcript", lines=10, visible=True))
|
40 |
|
41 |
for speaker_id, speaker_charts in charts.items():
|
|
|
|
|
|
|
|
|
42 |
speaker_explanations = explanations[speaker_id]
|
43 |
speaker_section = [
|
44 |
-
gr.Markdown(
|
45 |
gr.Plot(value=speaker_charts.get("attachment", None), visible=True),
|
46 |
gr.Textbox(value=speaker_explanations.get("attachment", ""), label="Attachment Styles Explanation",
|
47 |
visible=True),
|
|
|
39 |
output_components.append(gr.Textbox(value=transcription, label="Transcript", lines=10, visible=True))
|
40 |
|
41 |
for speaker_id, speaker_charts in charts.items():
|
42 |
+
markdown_content = f"""
|
43 |
+
| ### {speaker_id} |
|
44 |
+
|-----------------|
|
45 |
+
"""
|
46 |
speaker_explanations = explanations[speaker_id]
|
47 |
speaker_section = [
|
48 |
+
gr.Markdown(markdown_content, visible=True),
|
49 |
gr.Plot(value=speaker_charts.get("attachment", None), visible=True),
|
50 |
gr.Textbox(value=speaker_explanations.get("attachment", ""), label="Attachment Styles Explanation",
|
51 |
visible=True),
|