muhammadsalmanalfaridzi commited on
Commit
6d3506f
·
verified ·
1 Parent(s): d422d60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # Read file content
93
- file_content = file.read().decode("utf-8") # Assuming file is in text format (e.g., Markdown)
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)