Davichick commited on
Commit
65f329e
Β·
verified Β·
1 Parent(s): 89e531e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -31,7 +31,7 @@ else:
31
 
32
  print("Loading E5 Retrieval Model and Embeddings...")
33
 
34
- interviewers = ["Strict Technical Lead", "Friendly HR Manager", "Aggressive CISO", "Curious Senior Developer", "Business-Focused Product Manager"]
35
 
36
  if not PREVIEW:
37
  base_dir = os.path.dirname(__file__)
@@ -625,6 +625,7 @@ footer {{ display: none !important; }}
625
  border: 1px solid {T['line']} !important;
626
  border-radius: 4px !important;
627
  padding: 0 !important;
 
628
  }}
629
 
630
  /* ── Labels ───────────────────────────────────────── */
@@ -647,7 +648,7 @@ label * {{ color: {T['dim']} !important; font-size: inherit !important; }}
647
  border-bottom: 1px solid {T['line']} !important;
648
  }}
649
 
650
- /* ── Inputs ───────────────────────────────────────── */
651
  #a-input textarea {{
652
  background: {T['slab']} !important;
653
  color: {T['bone']} !important;
@@ -1047,7 +1048,7 @@ with gr.Blocks(**_blocks_kwargs) as app:
1047
 
1048
  # Quick starters
1049
  starter_1.click(
1050
- fn=lambda: ("Data Scientist", "FinTech", "Strict Technical Lead", "Practical"),
1051
  outputs=[role_dropdown, sector_dropdown, interviewer_dropdown, level_dropdown]
1052
  ).then(
1053
  fn=get_interview_question_and_clear,
@@ -1055,7 +1056,7 @@ with gr.Blocks(**_blocks_kwargs) as app:
1055
  outputs=[question_display, user_answer, score_circle, feedback_display]
1056
  )
1057
  starter_2.click(
1058
- fn=lambda: ("Backend Developer", "Cybersecurity", "Curious Senior Developer", "Foundational"),
1059
  outputs=[role_dropdown, sector_dropdown, interviewer_dropdown, level_dropdown]
1060
  ).then(
1061
  fn=get_interview_question_and_clear,
@@ -1063,7 +1064,7 @@ with gr.Blocks(**_blocks_kwargs) as app:
1063
  outputs=[question_display, user_answer, score_circle, feedback_display]
1064
  )
1065
  starter_3.click(
1066
- fn=lambda: ("UX/UI Designer", "SaaS & Cloud Platforms", "Business-Focused Product Manager", "Edge Case & Conflict"),
1067
  outputs=[role_dropdown, sector_dropdown, interviewer_dropdown, level_dropdown]
1068
  ).then(
1069
  fn=get_interview_question_and_clear,
 
31
 
32
  print("Loading E5 Retrieval Model and Embeddings...")
33
 
34
+ interviewers = ["Technical Lead", "HR Manager", "CISO", "Senior Developer", "Product Manager"]
35
 
36
  if not PREVIEW:
37
  base_dir = os.path.dirname(__file__)
 
625
  border: 1px solid {T['line']} !important;
626
  border-radius: 4px !important;
627
  padding: 0 !important;
628
+ overflow: visible !important; /* Critical to prevent dropdown detachment */
629
  }}
630
 
631
  /* ── Labels ───────────────────────────────────────── */
 
648
  border-bottom: 1px solid {T['line']} !important;
649
  }}
650
 
651
+ /* ── Inputs (Targeted to avoid breaking Dropdowns) ── */
652
  #a-input textarea {{
653
  background: {T['slab']} !important;
654
  color: {T['bone']} !important;
 
1048
 
1049
  # Quick starters
1050
  starter_1.click(
1051
+ fn=lambda: ("Data Scientist", "FinTech", "Technical Lead", "Practical"),
1052
  outputs=[role_dropdown, sector_dropdown, interviewer_dropdown, level_dropdown]
1053
  ).then(
1054
  fn=get_interview_question_and_clear,
 
1056
  outputs=[question_display, user_answer, score_circle, feedback_display]
1057
  )
1058
  starter_2.click(
1059
+ fn=lambda: ("Backend Developer", "Cybersecurity", "Senior Developer", "Foundational"),
1060
  outputs=[role_dropdown, sector_dropdown, interviewer_dropdown, level_dropdown]
1061
  ).then(
1062
  fn=get_interview_question_and_clear,
 
1064
  outputs=[question_display, user_answer, score_circle, feedback_display]
1065
  )
1066
  starter_3.click(
1067
+ fn=lambda: ("UX/UI Designer", "SaaS & Cloud Platforms", "Product Manager", "Edge Case & Conflict"),
1068
  outputs=[role_dropdown, sector_dropdown, interviewer_dropdown, level_dropdown]
1069
  ).then(
1070
  fn=get_interview_question_and_clear,