Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
47 |
|
48 |
with gr.TabItem(label=f'Attachment Styles'):
|
49 |
speaker_section2 = [
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
]
|
54 |
|
55 |
with gr.TabItem(label=f'Big Five Traits'):
|
@@ -106,26 +106,25 @@ with gr.Blocks() as iface:
|
|
106 |
for i in range(3): # Assuming maximum of 3 speakers
|
107 |
with gr.Tab(label=f'Speaker {i+1}', visible=False):
|
108 |
with gr.TabItem(label=f'General Impression'):
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
|
113 |
with gr.TabItem(label=f'Attachment Styles'):
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
gr.Textbox(label="Attachment Styles Explanation", visible=False)]
|
119 |
|
120 |
with gr.TabItem(label=f'Big Five Traits'):
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
|
125 |
with gr.TabItem(label=f'Personalities'):
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
|
130 |
output_components.extend(column_components1)
|
131 |
output_components.extend(column_components2)
|
|
|
47 |
|
48 |
with gr.TabItem(label=f'Attachment Styles'):
|
49 |
speaker_section2 = [
|
50 |
+
gr.Plot(value=speaker_charts.get("attachment", None), visible=True),
|
51 |
+
gr.Plot(value=speaker_charts.get("dimensions", None), visible=True),
|
52 |
+
gr.Textbox(value=speaker_explanations.get("attachment", ""), label="Attachment Styles Explanation", visible=True)
|
53 |
]
|
54 |
|
55 |
with gr.TabItem(label=f'Big Five Traits'):
|
|
|
106 |
for i in range(3): # Assuming maximum of 3 speakers
|
107 |
with gr.Tab(label=f'Speaker {i+1}', visible=False):
|
108 |
with gr.TabItem(label=f'General Impression'):
|
109 |
+
column_components1 = [
|
110 |
+
gr.Markdown(visible=False),
|
111 |
+
gr.Textbox(label="General Impression", visible=False)]
|
112 |
|
113 |
with gr.TabItem(label=f'Attachment Styles'):
|
114 |
+
column_components2 = [
|
115 |
+
gr.Plot(visible=False),
|
116 |
+
gr.Plot(visible=False),
|
117 |
+
gr.Textbox(label="Attachment Styles Explanation", visible=False)]
|
|
|
118 |
|
119 |
with gr.TabItem(label=f'Big Five Traits'):
|
120 |
+
column_components3 = [
|
121 |
+
gr.Plot(visible=False),
|
122 |
+
gr.Textbox(label="Big Five Traits Explanation", visible=False)]
|
123 |
|
124 |
with gr.TabItem(label=f'Personalities'):
|
125 |
+
column_components4 = [
|
126 |
+
gr.Plot(visible=False),
|
127 |
+
gr.Textbox(label="Personality Disorders Explanation", visible=False)]
|
128 |
|
129 |
output_components.extend(column_components1)
|
130 |
output_components.extend(column_components2)
|