Update app.py
Browse files
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 |
-
|
|
|
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 |
-
|
|
|
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 |
|