eagle0504 commited on
Commit
88e61fb
·
verified ·
1 Parent(s): eb144b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -76,10 +76,9 @@ if prompt := st.chat_input("What is up?"):
76
  st.chat_message("user").markdown(prompt)
77
 
78
  # Add user message to chat history
79
- st.session_state.messages.append({"role": "user", "content": background_info})
80
-
81
- # Add user message to chat history
82
- st.session_state.messages.append({"role": "user", "content": prompt})
83
 
84
  response = call_llama(prompt)
85
 
 
76
  st.chat_message("user").markdown(prompt)
77
 
78
  # Add user message to chat history
79
+ st.session_state.messages.append({"role": "user", "content": f"""
80
+ Remember the {background_info}
81
+ and answer the question {prompt}"""})
 
82
 
83
  response = call_llama(prompt)
84