Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,11 +62,11 @@ if prompt := st.chat_input("Ask me anything!"):
|
|
62 |
msg_placeholder = st.empty()
|
63 |
msg_placeholder.markdown("Thinking...")
|
64 |
full_response = ""
|
65 |
-
|
66 |
for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
|
67 |
msg_placeholder.empty()
|
68 |
full_response += response
|
69 |
-
full_response_string
|
70 |
full_response_string = full_response.split('Answer:')
|
71 |
msg_placeholder.markdown(full_response_string[1])
|
72 |
st.session_state.messages.append({"role": "assistant", "content": full_response_string[1]})
|
|
|
62 |
msg_placeholder = st.empty()
|
63 |
msg_placeholder.markdown("Thinking...")
|
64 |
full_response = ""
|
65 |
+
full_response_string = []
|
66 |
for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
|
67 |
msg_placeholder.empty()
|
68 |
full_response += response
|
69 |
+
full_response_string.clear()
|
70 |
full_response_string = full_response.split('Answer:')
|
71 |
msg_placeholder.markdown(full_response_string[1])
|
72 |
st.session_state.messages.append({"role": "assistant", "content": full_response_string[1]})
|