Update app.py
Browse files
app.py
CHANGED
@@ -89,8 +89,8 @@ def process_resume(file, jd_string):
|
|
89 |
Process the uploaded resume and job description, optimize it, and return the result.
|
90 |
"""
|
91 |
try:
|
92 |
-
#
|
93 |
-
file_content = file.
|
94 |
|
95 |
# Convert file to Markdown using MarkItDown
|
96 |
original_md = md_converter.convert(file_content)
|
|
|
89 |
Process the uploaded resume and job description, optimize it, and return the result.
|
90 |
"""
|
91 |
try:
|
92 |
+
# Check if file is a 'NamedString' and read its content correctly
|
93 |
+
file_content = file.name # Access the file content via the file's path
|
94 |
|
95 |
# Convert file to Markdown using MarkItDown
|
96 |
original_md = md_converter.convert(file_content)
|