reab5555 commited on
Commit
81738fe
·
verified ·
1 Parent(s): 7b2e411

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -17
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
- 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,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
- 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
- with gr.Row():
115
- column_components2 = [
116
- gr.Plot(visible=False),
117
- gr.Plot(visible=False),
118
- gr.Textbox(label="Attachment Styles Explanation", visible=False)]
119
 
120
  with gr.TabItem(label=f'Big Five Traits'):
121
- column_components3 = [
122
- gr.Plot(visible=False),
123
- gr.Textbox(label="Big Five Traits Explanation", visible=False)]
124
 
125
  with gr.TabItem(label=f'Personalities'):
126
- column_components4 = [
127
- gr.Plot(visible=False),
128
- gr.Textbox(label="Personality Disorders Explanation", visible=False)]
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)