Spaces:
Sleeping
Sleeping
update main.py
Browse files
main.py
CHANGED
|
@@ -97,7 +97,9 @@ def main():
|
|
| 97 |
response = generate_response(user_input)
|
| 98 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
| 99 |
with st.chat_message("assistant"):
|
| 100 |
-
|
|
|
|
|
|
|
| 101 |
|
| 102 |
chatlog = format_messages_for_summary(st.session_state['messages'])
|
| 103 |
st.sidebar.download_button(
|
|
|
|
| 97 |
response = generate_response(user_input)
|
| 98 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
| 99 |
with st.chat_message("assistant"):
|
| 100 |
+
for word in response_generator(response):
|
| 101 |
+
st.write(word, end="")
|
| 102 |
+
st.write('')
|
| 103 |
|
| 104 |
chatlog = format_messages_for_summary(st.session_state['messages'])
|
| 105 |
st.sidebar.download_button(
|