Stone164 commited on
Commit
76a4e39
Β·
verified Β·
1 Parent(s): 3e89e72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -134,7 +134,7 @@ The student wants insights on the following module(s): {', '.join(desired_parts)
134
  Please write a separate section for each selected module in order, using Markdown formatting.
135
 
136
  (A: Course Selection & Career Entry)
137
- - Analyze the student’s current academic background and what capabilities they already have.
138
  - Based on their intended career, recommend what types of courses they should focus on.
139
  - Suggest course names and keywords to guide their course planning.
140
 
@@ -146,7 +146,7 @@ Please write a separate section for each selected module in order, using Markdow
146
 
147
  (C: Internships & Experience Building)
148
  - Suggest platforms to find internships.
149
- - Recommend internship directions aligned with the student’s career goal.
150
  - Provide tips for preparing materials and applying.
151
  - Strategies for gaining experience through networking, internships, or campus jobs.
152
 
@@ -442,12 +442,11 @@ Personality summary: {ps}
442
  Ideal workday: {dd}
443
  Student's selected direction: {fwd}
444
  Please provide:
445
- 1. An analysis of the student’s strengths, personality traits, and values
446
  2. 3 recommended specific jobs, including daily work content, fit, requirements, and preparation pathway
447
  3. A final career roadmap:
448
  πŸ“ Now β†’ πŸŽ“ Learning Suggestions β†’ πŸ’Ό Practice Suggestions β†’ πŸ“„ Certification Advice β†’ πŸš€ Job Search Suggestions
449
  """
450
- """
451
 
452
 
453
 
@@ -763,9 +762,9 @@ def predict(message, history):
763
  return "Information down"
764
 
765
  # ============================ Gradio UI ============================
766
- import gradio as gr
767
 
768
- with gr.Blocks(css="""
769
  body {
770
  background-color: #1e1e1e;
771
  color: #ffffff;
@@ -814,7 +813,9 @@ textarea, input {
814
  footer {
815
  display: none !important;
816
  }
817
- """) as demo:
 
 
818
  with gr.Row():
819
  gr.HTML("""
820
  <div style='display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px;'>
 
134
  Please write a separate section for each selected module in order, using Markdown formatting.
135
 
136
  (A: Course Selection & Career Entry)
137
+ - Analyze the student's current academic background and what capabilities they already have.
138
  - Based on their intended career, recommend what types of courses they should focus on.
139
  - Suggest course names and keywords to guide their course planning.
140
 
 
146
 
147
  (C: Internships & Experience Building)
148
  - Suggest platforms to find internships.
149
+ - Recommend internship directions aligned with the student's career goal.
150
  - Provide tips for preparing materials and applying.
151
  - Strategies for gaining experience through networking, internships, or campus jobs.
152
 
 
442
  Ideal workday: {dd}
443
  Student's selected direction: {fwd}
444
  Please provide:
445
+ 1. An analysis of the student's strengths, personality traits, and values
446
  2. 3 recommended specific jobs, including daily work content, fit, requirements, and preparation pathway
447
  3. A final career roadmap:
448
  πŸ“ Now β†’ πŸŽ“ Learning Suggestions β†’ πŸ’Ό Practice Suggestions β†’ πŸ“„ Certification Advice β†’ πŸš€ Job Search Suggestions
449
  """
 
450
 
451
 
452
 
 
762
  return "Information down"
763
 
764
  # ============================ Gradio UI ============================
765
+ # Gradio import is already done at the top of the file
766
 
767
+ css = """
768
  body {
769
  background-color: #1e1e1e;
770
  color: #ffffff;
 
813
  footer {
814
  display: none !important;
815
  }
816
+ """
817
+
818
+ with gr.Blocks(css=css) as demo:
819
  with gr.Row():
820
  gr.HTML("""
821
  <div style='display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px;'>