MaxGit32 commited on
Commit
e3bc43f
1 Parent(s): effc6fc

Update pages/upload.py

Browse files
Files changed (1) hide show
  1. pages/upload.py +1 -1
pages/upload.py CHANGED
@@ -16,7 +16,6 @@ def save_file(uploaded_file):
16
  w.write(uploaded_file.getvalue())
17
  if save_path.exists():
18
  st.success(f'Dokument {uploaded_file.name} wurde erfolgreich auf den Server hochgeladen.')
19
- create_vectorstore_and_store()
20
  st.text("Vektordatenbank erstellt!")
21
  # file uploader
22
  with st.form('upload_form'):
@@ -26,4 +25,5 @@ with st.form('upload_form'):
26
  if uploaded_file:
27
  filename = uploaded_file.name
28
  save_file(uploaded_file)
 
29
  generate_files()
 
16
  w.write(uploaded_file.getvalue())
17
  if save_path.exists():
18
  st.success(f'Dokument {uploaded_file.name} wurde erfolgreich auf den Server hochgeladen.')
 
19
  st.text("Vektordatenbank erstellt!")
20
  # file uploader
21
  with st.form('upload_form'):
 
25
  if uploaded_file:
26
  filename = uploaded_file.name
27
  save_file(uploaded_file)
28
+ create_vectorstore_and_store()
29
  generate_files()