vraman54 commited on
Commit
cd71cc8
1 Parent(s): 1395b2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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":"system","content":"Being a Q&A bot, remove the context 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,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