skullsquadron commited on
Commit
df40726
·
verified ·
1 Parent(s): 4bff9ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(file.content)
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()