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 |
-
|
81 |
-
msg_placeholder.markdown(
|
82 |
-
st.session_state.messages.append({"role": "assistant", "content":
|
|
|
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_string = full_response[1].split('Answer:')
|
81 |
+
msg_placeholder.markdown(full_response_string)
|
82 |
+
st.session_state.messages.append({"role": "assistant", "content": full_response_string})
|