Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,21 +52,21 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
52 |
with gr.TabItem(label=f'General Impression'):
|
53 |
speaker_section1 = [
|
54 |
gr.Markdown(f"### {speaker_id}", visible=True),
|
55 |
-
gr.Textbox(value=speaker_general_impression, label="General Impression", visible=True)
|
56 |
]
|
57 |
|
58 |
with gr.TabItem(label=f'Attachment Styles'):
|
59 |
speaker_section2 = [
|
60 |
gr.Plot(value=speaker_charts.get("attachment", None), visible=True),
|
61 |
gr.Plot(value=speaker_charts.get("dimensions", None), visible=True),
|
62 |
-
gr.Textbox(value=speaker_explanations.get("attachment", ""), label="Attachment Styles Explanation",
|
63 |
visible=True)
|
64 |
]
|
65 |
|
66 |
with gr.TabItem(label=f'Big Five Traits'):
|
67 |
speaker_section3 = [
|
68 |
gr.Plot(value=speaker_charts.get("bigfive", None), visible=True),
|
69 |
-
gr.Textbox(value=speaker_explanations.get("bigfive", ""), label="Big Five Traits Explanation",
|
70 |
visible=True)
|
71 |
]
|
72 |
|
@@ -74,7 +74,7 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
74 |
speaker_section4 = [
|
75 |
gr.Plot(value=speaker_charts.get("personality", None), visible=True),
|
76 |
gr.Textbox(value=speaker_explanations.get("personality", ""),
|
77 |
-
label="Personality Disorders Explanation", visible=True)
|
78 |
]
|
79 |
|
80 |
output_components.extend(speaker_section1)
|
|
|
52 |
with gr.TabItem(label=f'General Impression'):
|
53 |
speaker_section1 = [
|
54 |
gr.Markdown(f"### {speaker_id}", visible=True),
|
55 |
+
gr.Textbox(value=speaker_general_impression, label="General Impression", lines=5, visible=True)
|
56 |
]
|
57 |
|
58 |
with gr.TabItem(label=f'Attachment Styles'):
|
59 |
speaker_section2 = [
|
60 |
gr.Plot(value=speaker_charts.get("attachment", None), visible=True),
|
61 |
gr.Plot(value=speaker_charts.get("dimensions", None), visible=True),
|
62 |
+
gr.Textbox(value=speaker_explanations.get("attachment", ""), label="Attachment Styles Explanation", lines=2,
|
63 |
visible=True)
|
64 |
]
|
65 |
|
66 |
with gr.TabItem(label=f'Big Five Traits'):
|
67 |
speaker_section3 = [
|
68 |
gr.Plot(value=speaker_charts.get("bigfive", None), visible=True),
|
69 |
+
gr.Textbox(value=speaker_explanations.get("bigfive", ""), label="Big Five Traits Explanation", lines=2,
|
70 |
visible=True)
|
71 |
]
|
72 |
|
|
|
74 |
speaker_section4 = [
|
75 |
gr.Plot(value=speaker_charts.get("personality", None), visible=True),
|
76 |
gr.Textbox(value=speaker_explanations.get("personality", ""),
|
77 |
+
label="Personality Disorders Explanation", lines=2, visible=True)
|
78 |
]
|
79 |
|
80 |
output_components.extend(speaker_section1)
|