srijaydeshpande commited on
Commit
5c997fe
·
verified ·
1 Parent(s): c86244b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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