willn9 commited on
Commit
ab53231
1 Parent(s): 5775865

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -11,7 +11,7 @@ project_id = os.environ.get("project_id")
11
 
12
  # Generation parameters
13
  gen_parms = {
14
- "max_new_tokens": 768, # Adjust as needed
15
  "temperature": 0.7 # Adjust for creativity
16
  }
17
 
@@ -43,7 +43,9 @@ def generate_career_advice(field, position_name, current_qualifications, likes,
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
 
 
11
 
12
  # Generation parameters
13
  gen_parms = {
14
+ "max_new_tokens": 512, # Adjust as needed
15
  "temperature": 0.7 # Adjust for creativity
16
  }
17
 
 
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, \
47
+ what additional qualifications, courses, training or certifications to take, networking, \
48
+ gaining experience, etc. Use a brief style and limit your answer within 512 tokens or less."
49
 
50
  generated_response = model.generate(prompt, gen_parms)
51