alexkueck commited on
Commit
9cbec02
1 Parent(s): bd32425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -203,7 +203,7 @@ def clear_all(history, uploaded_file_paths, chats):
203
  pdf_reader = PdfReader(memoryFile)
204
  # Gib das PDF-Objekt an PdfFileWriter weiter
205
  for page in range(len(pdf_reader.pages)):
206
- pdf_writer.add_Page(pdf_reader.pages[page])
207
  # Speichere das PDF-Objekt in einer neuen Datei
208
  with open(file_path_download, "wb") as fp:
209
  pdf_writer.write(fp)
 
203
  pdf_reader = PdfReader(memoryFile)
204
  # Gib das PDF-Objekt an PdfFileWriter weiter
205
  for page in range(len(pdf_reader.pages)):
206
+ pdf_writer.add_page(pdf_reader.pages[page])
207
  # Speichere das PDF-Objekt in einer neuen Datei
208
  with open(file_path_download, "wb") as fp:
209
  pdf_writer.write(fp)