alexkueck commited on
Commit
b7a8416
1 Parent(s): 7213f66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -144,7 +144,7 @@ def upload_pdf(file):
144
 
145
  # Erstellen Sie einen temporären Dateipfad
146
  with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as temp_file:
147
- temp_file.write(file.read())
148
  temp_file_path = temp_file.name
149
 
150
  try:
 
144
 
145
  # Erstellen Sie einen temporären Dateipfad
146
  with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as temp_file:
147
+ temp_file.write(file) # Direktes Schreiben des Datei-Inhalts
148
  temp_file_path = temp_file.name
149
 
150
  try: