reab5555 commited on
Commit
2183eec
·
verified ·
1 Parent(s): 00c602a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -7
app.py CHANGED
@@ -89,21 +89,31 @@ with gr.Blocks() as iface:
89
  # Add transcript output near the top
90
  execution_info_box = gr.Textbox(label="Transcript", value="N/A", lines=1)
91
  output_components.append(execution_info_box)
 
92
  with gr.Row():
93
  for i in range(3): # Assuming maximum of 3 speakers
94
- with gr.Column():
95
- column_components = [
96
  gr.Markdown(visible=False),
97
- gr.Textbox(label="General Impression", visible=False),
 
 
 
98
  gr.Plot(visible=False),
99
  gr.Plot(visible=False),
100
- gr.Textbox(label="Attachment Styles Explanation", visible=False),
 
 
 
101
  gr.Plot(visible=False),
102
- gr.Textbox(label="Big Five Traits Explanation", visible=False),
 
 
 
103
  gr.Plot(visible=False),
104
- gr.Textbox(label="Personality Disorders Explanation", visible=False),
105
  ]
106
- output_components.extend(column_components)
107
 
108
  # Add execution info component
109
  transcript_output = gr.Textbox(label="Transcript", lines=10, visible=False)
 
89
  # Add transcript output near the top
90
  execution_info_box = gr.Textbox(label="Transcript", value="N/A", lines=1)
91
  output_components.append(execution_info_box)
92
+
93
  with gr.Row():
94
  for i in range(3): # Assuming maximum of 3 speakers
95
+ with gr.tab(label=f'General Impression'):
96
+ column_components1 = [
97
  gr.Markdown(visible=False),
98
+ gr.Textbox(label="General Impression", visible=False)]
99
+
100
+ with gr.tab(label=f'Attachment Styles'):
101
+ column_components2 = [
102
  gr.Plot(visible=False),
103
  gr.Plot(visible=False),
104
+ gr.Textbox(label="Attachment Styles Explanation", visible=False)]
105
+
106
+ with gr.tab(label=f'Big Five Traits'):
107
+ column_components3 = [
108
  gr.Plot(visible=False),
109
+ gr.Textbox(label="Big Five Traits Explanation", visible=False)]
110
+
111
+ with gr.tab(label=f'Personalities'):
112
+ column_components4 = [
113
  gr.Plot(visible=False),
114
+ gr.Textbox(label="Personality Disorders Explanation", visible=False)]
115
  ]
116
+ output_components.extend(column_components1, column_components2, column_components3, column_components4)
117
 
118
  # Add execution info component
119
  transcript_output = gr.Textbox(label="Transcript", lines=10, visible=False)