Anne31415 commited on
Commit
373dc79
·
verified ·
1 Parent(s): f16ee08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -306,7 +306,7 @@ def page1():
306
  # Start timing
307
  start_time = time.time()
308
 
309
- with st.spinner('Eve is thinking...'):
310
  chain = load_chatbot()
311
  docs = VectorStore.similarity_search(query=query, k=5)
312
  with get_openai_callback() as cb:
@@ -323,7 +323,6 @@ def page1():
323
 
324
  st.session_state['chat_history_page1'].append(("Eve", response, "new"))
325
 
326
- st.text(f"Response time: {duration:.2f} seconds")
327
 
328
  # Combine chat histories from all pages
329
  all_chat_histories = [
@@ -430,7 +429,7 @@ def page2():
430
  # Start timing
431
  start_time = time.time()
432
 
433
- with st.spinner('Eve is thinking...'):
434
  chain = load_chatbot()
435
  docs = VectorStore.similarity_search(query=query, k=5)
436
  with get_openai_callback() as cb:
@@ -549,7 +548,7 @@ def page3():
549
  # Start timing
550
  start_time = time.time()
551
 
552
- with st.spinner('Eve is thinking...'):
553
  chain = load_chatbot()
554
  docs = VectorStore.similarity_search(query=query, k=5)
555
  with get_openai_callback() as cb:
 
306
  # Start timing
307
  start_time = time.time()
308
 
309
+ with st.spinner('Eve denkt über Ihre Frage nach...'):
310
  chain = load_chatbot()
311
  docs = VectorStore.similarity_search(query=query, k=5)
312
  with get_openai_callback() as cb:
 
323
 
324
  st.session_state['chat_history_page1'].append(("Eve", response, "new"))
325
 
 
326
 
327
  # Combine chat histories from all pages
328
  all_chat_histories = [
 
429
  # Start timing
430
  start_time = time.time()
431
 
432
+ with st.spinner('Eve denkt über Ihre Frage nach...'):
433
  chain = load_chatbot()
434
  docs = VectorStore.similarity_search(query=query, k=5)
435
  with get_openai_callback() as cb:
 
548
  # Start timing
549
  start_time = time.time()
550
 
551
+ with st.spinner('Eve denkt über Ihre Frage nach...'):
552
  chain = load_chatbot()
553
  docs = VectorStore.similarity_search(query=query, k=5)
554
  with get_openai_callback() as cb: