Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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:
|