Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def process_file(file: AskFileResponse):
|
|
| 54 |
with open(file.path, "rb") as sourcefile:
|
| 55 |
# Read the contents of the file
|
| 56 |
content = sourcefile.read()
|
| 57 |
-
f.write(
|
| 58 |
|
| 59 |
pypdf_loader = PyPDFLoader(tempfile.name)
|
| 60 |
texts = pypdf_loader.load_and_split()
|
|
|
|
| 54 |
with open(file.path, "rb") as sourcefile:
|
| 55 |
# Read the contents of the file
|
| 56 |
content = sourcefile.read()
|
| 57 |
+
f.write(content)
|
| 58 |
|
| 59 |
pypdf_loader = PyPDFLoader(tempfile.name)
|
| 60 |
texts = pypdf_loader.load_and_split()
|