Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -77,6 +77,6 @@ if prompt := st.chat_input("Ask me anything!"):
|
|
77 |
for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
|
78 |
msg_placeholder.empty()
|
79 |
full_response += response
|
80 |
-
full_response
|
81 |
-
msg_placeholder.markdown(full_response[
|
82 |
-
st.session_state.messages.append({"role": "assistant", "content": full_response[
|
|
|
77 |
for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
|
78 |
msg_placeholder.empty()
|
79 |
full_response += response
|
80 |
+
full_response = full_response.split('Answer:')
|
81 |
+
msg_placeholder.markdown(full_response[1])
|
82 |
+
st.session_state.messages.append({"role": "assistant", "content": full_response[1]})
|