JBHF commited on
Commit
490c7c6
1 Parent(s): db6bbe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -106,9 +106,10 @@ for file in pdf_files:
106
 
107
  st.write("---------------------------------")
108
 
109
- if "vector" not in st.session_state:
110
 
111
- start = time.process_time()
 
 
112
 
113
  st.write("Even geduld a.u.b. ........")
114
  # st.header("Chunking, embedding, storing in FAISS vectorstore (Can take a long time!).")
@@ -251,8 +252,8 @@ if "vector" not in st.session_state:
251
  # Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
252
  # st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
253
 
254
- # print(f"Response time: {time.process_time() - start}")
255
- st.write(f"Response time voor: Laden van de PDF documenten / Splitting de teksten / Genereer de Vector Store: {time.process_time() - start} seconds")
256
 
257
  st.write("---------------------------------")
258
 
 
106
 
107
  st.write("---------------------------------")
108
 
 
109
 
110
+ start = time.process_time()
111
+
112
+ if "vector" not in st.session_state:
113
 
114
  st.write("Even geduld a.u.b. ........")
115
  # st.header("Chunking, embedding, storing in FAISS vectorstore (Can take a long time!).")
 
252
  # Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
253
  # st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
254
 
255
+ # print(f"Response time: {time.process_time() - start}")
256
+ st.write(f"Response time voor: Laden van de PDF documenten / Splitting de teksten / Genereer de Vector Store: {time.process_time() - start} seconds")
257
 
258
  st.write("---------------------------------")
259