Siddartha10 commited on
Commit
2d646f1
1 Parent(s): a08b490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -108,9 +108,6 @@ if prompt := st.chat_input("How can I help?"):
108
 
109
  with st.chat_message("assistant", avatar=BOT_AVATAR):
110
  message_placeholder = st.empty()
111
- full_response = ""
112
- response = chain.invoke(prompt)
113
- full_response = response['result']
114
- message_placeholder.markdown(full_response)
115
  st.session_state.messages.append({"role": "assistant", "content": full_response})
116
  save_chat_history(st.session_state.messages)
 
108
 
109
  with st.chat_message("assistant", avatar=BOT_AVATAR):
110
  message_placeholder = st.empty()
111
+ message_placeholder.markdown(chain.invoke(prompt)['result'])
 
 
 
112
  st.session_state.messages.append({"role": "assistant", "content": full_response})
113
  save_chat_history(st.session_state.messages)