ashok2216 commited on
Commit
000be1c
·
verified ·
1 Parent(s): 9bd9c69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,7 +85,7 @@ def respond(message, history, max_tokens, temperature, top_p):
85
  ):
86
  token = message.choices[0].delta.content
87
  response += token
88
- response_container.text(response) # Stream the response
89
 
90
  return response
91
 
@@ -102,4 +102,4 @@ if user_input := st.chat_input("Ask a health question..."):
102
  with st.chat_message("assistant"):
103
  st.markdown(response)
104
  st.session_state.messages.append({"role": "assistant", "content": response})
105
- st.rerun()
 
85
  ):
86
  token = message.choices[0].delta.content
87
  response += token
88
+ # response_container.text(response) # Stream the response
89
 
90
  return response
91
 
 
102
  with st.chat_message("assistant"):
103
  st.markdown(response)
104
  st.session_state.messages.append({"role": "assistant", "content": response})
105
+ # st.rerun()