fehmikaya commited on
Commit
0cfb831
·
verified ·
1 Parent(s): 9a6d954

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -65,6 +65,5 @@ if user_prompt:
65
  with st.spinner("Thinking..."):
66
  response = handle_query(user_prompt)
67
  with st.chat_message("assistant", avatar=icons["assistant"]):
68
- for char in streamer(response):
69
- st.write(char, end="")
70
  st.session_state.messages.append({'role': 'assistant', "content": response})
 
65
  with st.spinner("Thinking..."):
66
  response = handle_query(user_prompt)
67
  with st.chat_message("assistant", avatar=icons["assistant"]):
68
+ st.write(streamer(response))
 
69
  st.session_state.messages.append({'role': 'assistant', "content": response})