Spaces:
Running
Running
Swayambhoo Jain
commited on
Commit
·
f9b222e
1
Parent(s):
43ba4e0
resolving the response clearning
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ if st.session_state.messages[-1]["role"] != "assistant":
|
|
91 |
with st.chat_message("assistant"):
|
92 |
with st.spinner("Thinking..."):
|
93 |
response = generate_response(prompt)
|
94 |
-
|
95 |
st.write_stream(stream_response(response))
|
96 |
|
97 |
message = {"role": "assistant", "content": response}
|
|
|
91 |
with st.chat_message("assistant"):
|
92 |
with st.spinner("Thinking..."):
|
93 |
response = generate_response(prompt)
|
94 |
+
response = clean_response(response)
|
95 |
st.write_stream(stream_response(response))
|
96 |
|
97 |
message = {"role": "assistant", "content": response}
|