boryasbora commited on
Commit
74cf9e3
·
verified ·
1 Parent(s): f4c52a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -192,10 +192,10 @@ if prompt := st.chat_input("How may I assist you today?"):
192
  with st.spinner("Generating answer..."):
193
  chain = get_chain(temperature)
194
  start_time = time.time()
195
- full_answer = generate_response(chain, query, "") # Context is handled within the chain
196
  end_time = time.time()
197
 
198
- st.markdown(full_answer)
199
  st.caption(f"Response time: {end_time - start_time:.2f} seconds")
200
 
201
  with tab2:
 
192
  with st.spinner("Generating answer..."):
193
  chain = get_chain(temperature)
194
  start_time = time.time()
195
+ full_answer = chain.invoke({"question": query, "chat_history":st.session_state.messages})# Context is handled within the chain
196
  end_time = time.time()
197
 
198
+ st.markdown(full_answer,unsafe_allow_html=True)
199
  st.caption(f"Response time: {end_time - start_time:.2f} seconds")
200
 
201
  with tab2: