amendolajine commited on
Commit
02ef3dd
·
1 Parent(s): badf9d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def process_text(uploaded_file):
27
  # Extract the file data (byte content) from the uploaded file
28
  # Check if 'content' key exists, and use it to access the file's byte content
29
  if "content" in uploaded_file:
30
- pdf_bytes = uploaded_file["content"]
31
  else:
32
  return "File content could not be retrieved", None
33
 
 
27
  # Extract the file data (byte content) from the uploaded file
28
  # Check if 'content' key exists, and use it to access the file's byte content
29
  if "content" in uploaded_file:
30
+ pdf_bytes = uploaded_file["data"]
31
  else:
32
  return "File content could not be retrieved", None
33