alexkueck commited on
Commit
f9af0ad
1 Parent(s): c420612

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -386,11 +386,10 @@ 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
- 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
 
@@ -410,7 +409,7 @@ def upload_pdf(files):
410
  ############################################
411
  #create_vectorstore()
412
  logging.info("Vektorstore successfully renewed.")
413
- status_message = " - Vektorstore wurde erneuert."
414
  except Exception as e:
415
  logging.error(f"Error renewing Vektorstore: {e}")
416
  status_message += " - Fehler beim Erneuern des Vektorstores."
 
386
  # Entfernen der vorhandenen Datei, falls sie existiert
387
  if os.path.exists(upload_path):
388
  os.remove(upload_path)
389
+
 
390
  # Hochladen der Datei
391
+ future = pool.submit(upload_file_to_huggingface, file.name, upload_path)
392
+ futures.append(future)
393
  except Exception as e:
394
  print("Fehler bei file upload...............")
395
 
 
409
  ############################################
410
  #create_vectorstore()
411
  logging.info("Vektorstore successfully renewed.")
412
+ status_message += " - Vektorstore wurde erneuert."
413
  except Exception as e:
414
  logging.error(f"Error renewing Vektorstore: {e}")
415
  status_message += " - Fehler beim Erneuern des Vektorstores."