Spaces:
Running
Running
Update app.py
Browse files
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":
|
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,
|
|
|
|
|
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 |
|