Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,9 +153,9 @@ def convert_to_json(llm, cv_text):
|
|
| 153 |
output = output['choices'][0]['message']['content']
|
| 154 |
return output
|
| 155 |
|
|
|
|
| 156 |
@spaces.GPU(duration=40)
|
| 157 |
-
def pdf_to_text(
|
| 158 |
-
#def pdf_to_text(cv_file, job_description, maxtokens=2048, temperature=0, top_probability=0.95):
|
| 159 |
|
| 160 |
# page2content = process_document(cv_file)
|
| 161 |
# cv_text = ""
|
|
|
|
| 153 |
output = output['choices'][0]['message']['content']
|
| 154 |
return output
|
| 155 |
|
| 156 |
+
# def pdf_to_text(prompt, maxtokens=2048, temperature=0, top_probability=0.95):
|
| 157 |
@spaces.GPU(duration=40)
|
| 158 |
+
def pdf_to_text(cv_file, job_description, maxtokens=2048, temperature=0, top_probability=0.95):
|
|
|
|
| 159 |
|
| 160 |
# page2content = process_document(cv_file)
|
| 161 |
# cv_text = ""
|