willn9 commited on
Commit
e9a5302
·
verified ·
1 Parent(s): 65e3be6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -41,9 +41,9 @@ def generate_career_advice(field, position_name, current_qualifications, likes,
41
  # Craft the prompt for the model
42
  prompt = f"Generate a customized career advice using desired career field: {field}, \
43
  dream job: {position_name}, \
44
- current qualifications: {current_qualifications}, \
45
  likes: {likes}, \
46
- skills: {skills}."
47
 
48
  generated_response = model.generate(prompt, gen_parms)
49
 
@@ -59,7 +59,7 @@ career_advice_app = gr.Interface(
59
  inputs=[
60
  gr.Textbox(label="Desired Career Field (e.g., healthcare, trades, social service, etc., or enter 'not sure')", placeholder="Enter the field which you are interested in... or type 'not sure'."),
61
  gr.Textbox(label="Your Dream Job (e.g., nurse, personal support worker, software developer, plumber, etc., or enter 'not sure')", placeholder="Enter the name of the position you are interested in... or type 'not sure'"),
62
- gr.Textbox(label="Current Qualifications (e.g., studying in high school, high school diploma, college diploma, etc.)", placeholder="Enter your current qualifications ..."),
63
  gr.Textbox(label="Likes (e.g., I like working with my hands, I like to work outside, I like to help people, I like teaching, ...)", placeholder="Enter activities you like ...", lines=10),
64
  gr.Textbox(label="Skills (e.g., I am good at math, science, languages, computers, research, hand tools, etc.)", placeholder="Enter your skills ...", lines=10),
65
  ],
 
41
  # Craft the prompt for the model
42
  prompt = f"Generate a customized career advice using desired career field: {field}, \
43
  dream job: {position_name}, \
44
+ current qualifications and certifications: {current_qualifications}, \
45
  likes: {likes}, \
46
+ skills: {skills}. Include tips on which career paths make a good fit and are in demand, what additional qualifications, courses, training or certifications to take, networking, gaining experience, etc. "
47
 
48
  generated_response = model.generate(prompt, gen_parms)
49
 
 
59
  inputs=[
60
  gr.Textbox(label="Desired Career Field (e.g., healthcare, trades, social service, etc., or enter 'not sure')", placeholder="Enter the field which you are interested in... or type 'not sure'."),
61
  gr.Textbox(label="Your Dream Job (e.g., nurse, personal support worker, software developer, plumber, etc., or enter 'not sure')", placeholder="Enter the name of the position you are interested in... or type 'not sure'"),
62
+ gr.Textbox(label="Current Qualifications and or Certifications (e.g., studying in high school, high school diploma, college diploma, etc.)", placeholder="Enter your current qualifications ..."),
63
  gr.Textbox(label="Likes (e.g., I like working with my hands, I like to work outside, I like to help people, I like teaching, ...)", placeholder="Enter activities you like ...", lines=10),
64
  gr.Textbox(label="Skills (e.g., I am good at math, science, languages, computers, research, hand tools, etc.)", placeholder="Enter your skills ...", lines=10),
65
  ],