Update app.py
Browse files
app.py
CHANGED
@@ -83,9 +83,9 @@ def upload_pdf(file):
|
|
83 |
# Save the uploaded file
|
84 |
file_name = file.name
|
85 |
|
86 |
-
|
87 |
|
88 |
-
messsage = load_document(
|
89 |
return messsage
|
90 |
else:
|
91 |
return "No file uploaded."
|
|
|
83 |
# Save the uploaded file
|
84 |
file_name = file.name
|
85 |
|
86 |
+
# file_name = os.path.basename(file_name)
|
87 |
|
88 |
+
messsage = load_document(file_name)
|
89 |
return messsage
|
90 |
else:
|
91 |
return "No file uploaded."
|