JBHF commited on
Commit
3e632fe
1 Parent(s): bac6cb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -254,7 +254,8 @@ if "vector" not in st.session_state:
254
 
255
  # st.write(f"Response time van de LLM: {elapsed_time:.1f} seconds")
256
  # print(f"Response time: {time.process_time() - start}")
257
- st.write(f"Response time voor: Laden van de PDF documenten / Splitting de teksten / Genereer de Vector Store: {(time.process_time() - start1).1f} seconds")
 
258
 
259
  st.write("---------------------------------")
260
 
@@ -340,7 +341,8 @@ if prompt := st.chat_input():
340
  start = time.process_time()
341
  response = retrieval_chain.invoke({"input": prompt})
342
  # print(f"Response time: {time.process_time() - start}")
343
- st.write(f"Response time van de LLM: {time.process_time() - start} seconds")
 
344
 
345
  # st.write(response["answer"])
346
 
 
254
 
255
  # st.write(f"Response time van de LLM: {elapsed_time:.1f} seconds")
256
  # print(f"Response time: {time.process_time() - start}")
257
+ elapsed_time = time.process_time() - start1
258
+ st.write(f"Response time voor: Laden van de PDF documenten / Splitting de teksten / Genereer de Vector Store: {elapsed_time:.1f} seconds")
259
 
260
  st.write("---------------------------------")
261
 
 
341
  start = time.process_time()
342
  response = retrieval_chain.invoke({"input": prompt})
343
  # print(f"Response time: {time.process_time() - start}")
344
+ elapsed_time = time.process_time() - start
345
+ st.write(f"Response time van de LLM: {elapsed_time:.1f} seconds")
346
 
347
  # st.write(response["answer"])
348