hinojosachapel
commited on
Commit
•
1e7b8f1
1
Parent(s):
38b7b5b
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -15,21 +15,12 @@ def get_job_description(company_name, sector, job_position):
|
|
15 |
messages = [
|
16 |
{
|
17 |
"role": "user",
|
18 |
-
"content":
|
19 |
-
|
20 |
-
You are the bot director of Human Resources at { company_name }, a company of the { sector } sector.
|
21 |
Your goal is to hire people in different departments of the company.
|
22 |
-
|
23 |
"""
|
24 |
},
|
25 |
-
{
|
26 |
-
"role": "assistant",
|
27 |
-
"content": "Tell me what job role it is and I'll generate the description for you!"
|
28 |
-
},
|
29 |
-
{
|
30 |
-
"role": "user",
|
31 |
-
"content": job_position
|
32 |
-
},
|
33 |
{
|
34 |
"role": "assistant",
|
35 |
"content": "Description:"
|
@@ -60,5 +51,5 @@ with gr.Blocks() as demo:
|
|
60 |
gr.Textbox(label="Elapsed time")]
|
61 |
)
|
62 |
|
63 |
-
|
64 |
-
demo.launch(share=True, server_port=7860)
|
|
|
15 |
messages = [
|
16 |
{
|
17 |
"role": "user",
|
18 |
+
"content": f"""
|
19 |
+
You are the Talent Acquisition Manager at { company_name }, a company of the { sector } sector.
|
|
|
20 |
Your goal is to hire people in different departments of the company.
|
21 |
+
I want to generate a Job Description for the role '{ job_position }' in a creative, modern, formal and attractive way.
|
22 |
"""
|
23 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
{
|
25 |
"role": "assistant",
|
26 |
"content": "Description:"
|
|
|
51 |
gr.Textbox(label="Elapsed time")]
|
52 |
)
|
53 |
|
54 |
+
demo.launch(server_port=7860)
|
55 |
+
# demo.launch(share=True, server_port=7860)
|