Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,9 +39,9 @@ model = Model(model_id, credentials, gen_parms, project_id)
|
|
39 |
# Function to generate customized career advice
|
40 |
def generate_career_advice(field, position_name, current_qualifications, likes, skills):
|
41 |
# Craft the prompt for the model
|
42 |
-
prompt = f"Generate a customized career advice using field: {field}, \
|
43 |
-
|
44 |
-
|
45 |
likes: {likes}, \
|
46 |
skills: {skills}."
|
47 |
|
@@ -57,7 +57,7 @@ career_advice_app = gr.Interface(
|
|
57 |
fn=generate_career_advice,
|
58 |
allow_flagging="never", # Deactivate the flag function in gradio as it is not needed.
|
59 |
inputs=[
|
60 |
-
gr.Textbox(label="
|
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),
|
|
|
39 |
# Function to generate customized career advice
|
40 |
def generate_career_advice(field, position_name, current_qualifications, likes, skills):
|
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 |
|
|
|
57 |
fn=generate_career_advice,
|
58 |
allow_flagging="never", # Deactivate the flag function in gradio as it is not needed.
|
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),
|