Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|