Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ if prompt := st.chat_input("Ask me anything!"):
|
|
67 |
|
68 |
with st.chat_message("user"):
|
69 |
st.markdown(prompt)
|
70 |
-
st.session_state.messages.append({"role":"
|
71 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
72 |
|
73 |
with st.chat_message("assistant"):
|
@@ -75,7 +75,7 @@ if prompt := st.chat_input("Ask me anything!"):
|
|
75 |
msg_placeholder.markdown("Thinking...")
|
76 |
full_response = ""
|
77 |
|
78 |
-
for response in app.chat(prompt):
|
79 |
msg_placeholder.empty()
|
80 |
full_response += response
|
81 |
|
|
|
67 |
|
68 |
with st.chat_message("user"):
|
69 |
st.markdown(prompt)
|
70 |
+
st.session_state.messages.append({"role":"assistant","content":"Being a Q&A bot, remove the context information passed in the response provided by you"})
|
71 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
72 |
|
73 |
with st.chat_message("assistant"):
|
|
|
75 |
msg_placeholder.markdown("Thinking...")
|
76 |
full_response = ""
|
77 |
|
78 |
+
for response in app.chat("Remove the context information and send the response for the prompt-" + prompt):
|
79 |
msg_placeholder.empty()
|
80 |
full_response += response
|
81 |
|