alexkueck commited on
Commit
08c12a0
1 Parent(s): 3df1884

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -386,13 +386,13 @@ def upload_pdf(files):
386
  # Entfernen der vorhandenen Datei, falls sie existiert
387
  if os.path.exists(upload_path):
388
  os.remove(upload_path)
389
- logging.info(f"Existing file {upload_path} removed.")
390
-
391
  # Hochladen der Datei
392
  #future = pool.submit(upload_file_to_huggingface, file.name, upload_path)
393
  futures.append(future)
394
  except Exception as e:
395
- logging.error(f"Error preparing upload for file {file.name}: {e}")
396
 
397
  # Warten, bis alle Uploads abgeschlossen sind
398
  for future in futures:
 
386
  # Entfernen der vorhandenen Datei, falls sie existiert
387
  if os.path.exists(upload_path):
388
  os.remove(upload_path)
389
+ print("exist. File remove.........................")
390
+ print"File upload wäre hier.................
391
  # Hochladen der Datei
392
  #future = pool.submit(upload_file_to_huggingface, file.name, upload_path)
393
  futures.append(future)
394
  except Exception as e:
395
+ print("Fehler bei file upload...............")
396
 
397
  # Warten, bis alle Uploads abgeschlossen sind
398
  for future in futures: