srijaydeshpande commited on
Commit
a03114f
·
verified ·
1 Parent(s): 2b2597f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,7 +89,7 @@ def craft_cv(llm, cv_text, job_description, maxtokens, temperature, top_probabil
89
  cv_text=''
90
  return cv_text, output
91
 
92
- def convert_to_json(llm, cv_text):
93
  prompt = """
94
  You are an expert at structuring resumes in JSON format. Given a modified resume text, extract the relevant details and convert them into the following structured JSON format:
95
 
@@ -174,7 +174,7 @@ def pdf_to_text(cv_file, job_description, maxtokens=2048, temperature=0, top_pro
174
  )
175
  cv_text, crafted_cv = craft_cv(llm, cv_text, job_description, maxtokens, temperature, top_probability)
176
  # cv_text, crafted_cv = craft_cv(llm, prompt, maxtokens, temperature, top_probability)
177
- crafted_cv = convert_to_json(llm, crafted_cv)
178
  return crafted_cv
179
 
180
  temp_slider = gr.Slider(minimum=0, maximum=2, value=0.9, label="Temperature Value")
 
89
  cv_text=''
90
  return cv_text, output
91
 
92
+ def convert_to_json(llm, cv_text, maxtokens, temperature, top_probability):
93
  prompt = """
94
  You are an expert at structuring resumes in JSON format. Given a modified resume text, extract the relevant details and convert them into the following structured JSON format:
95
 
 
174
  )
175
  cv_text, crafted_cv = craft_cv(llm, cv_text, job_description, maxtokens, temperature, top_probability)
176
  # cv_text, crafted_cv = craft_cv(llm, prompt, maxtokens, temperature, top_probability)
177
+ crafted_cv = convert_to_json(llm, crafted_cv, maxtokens, temperature, top_probability)
178
  return crafted_cv
179
 
180
  temp_slider = gr.Slider(minimum=0, maximum=2, value=0.9, label="Temperature Value")