Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,9 +158,9 @@ def convert_to_json(llm, cv_text, maxtokens, temperature, top_probability):
|
|
| 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 = ""
|
| 162 |
-
for page_id in page2content:
|
| 163 |
-
|
| 164 |
converter = DocumentConverter()
|
| 165 |
result = converter.convert(cv_file)
|
| 166 |
cv_text = result.document.export_to_markdown()
|
|
|
|
| 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 = ""
|
| 162 |
+
# for page_id in page2content:
|
| 163 |
+
# cv_text += page2content[page_id] + ' '
|
| 164 |
converter = DocumentConverter()
|
| 165 |
result = converter.convert(cv_file)
|
| 166 |
cv_text = result.document.export_to_markdown()
|