Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,10 +70,10 @@ def txt_to_html(text):
|
|
| 70 |
return html_content
|
| 71 |
|
| 72 |
def craft_cv(llm, cv_text, prompt, maxtokens, temperature, top_probability):
|
| 73 |
-
|
| 74 |
output = llm.create_chat_completion(
|
| 75 |
messages=[
|
| 76 |
-
{"role": "assistant", "content": prompt},
|
| 77 |
{
|
| 78 |
"role": "user",
|
| 79 |
"content": cv_text
|
|
|
|
| 70 |
return html_content
|
| 71 |
|
| 72 |
def craft_cv(llm, cv_text, prompt, maxtokens, temperature, top_probability):
|
| 73 |
+
task = 'Please modify the CV text according the following job description: '
|
| 74 |
output = llm.create_chat_completion(
|
| 75 |
messages=[
|
| 76 |
+
{"role": "assistant", "content": task + prompt},
|
| 77 |
{
|
| 78 |
"role": "user",
|
| 79 |
"content": cv_text
|