reab5555 commited on
Commit
2debc1f
·
verified ·
1 Parent(s): 94d45ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -52,7 +52,7 @@ 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'):
@@ -60,21 +60,21 @@ def analyze_video(video_path, progress=gr.Progress()):
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
 
73
  with gr.TabItem(label=f'Personalities'):
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", visible=True, lines=10)
56
  ]
57
 
58
  with gr.TabItem(label=f'Attachment Styles'):
 
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, lines=2)
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, lines=2)
71
  ]
72
 
73
  with gr.TabItem(label=f'Personalities'):
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, lines=2)
78
  ]
79
 
80
  output_components.extend(speaker_section1)