Spaces:
Running
Running
Mr-Vicky-01
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ if user_input:
|
|
40 |
response = get_response(user_input)
|
41 |
|
42 |
with st.chat_message("assistant"):
|
43 |
-
st.write(response)
|
44 |
-
|
45 |
message = {"role": "assistant", "content": response}
|
46 |
st.session_state.messages.append(message)
|
|
|
40 |
response = get_response(user_input)
|
41 |
|
42 |
with st.chat_message("assistant"):
|
43 |
+
# st.write(response)
|
44 |
+
st.write_stream(response_streaming(response))
|
45 |
message = {"role": "assistant", "content": response}
|
46 |
st.session_state.messages.append(message)
|