DataRaptor commited on
Commit
0a21035
·
verified ·
1 Parent(s): 5a45a6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def main():
116
 
117
  ## Get context
118
  params = {
119
- "chat_history": [{"content": x["content"]} for x in st.session_state.messages[-5:]],
120
  "model": "bloom-7b",
121
  "mode": "specific",
122
  "config": {
 
116
 
117
  ## Get context
118
  params = {
119
+ "chat_history": [{"content": x["content"]} for x in st.session_state.messages[-10:] if x['role']=='user'],
120
  "model": "bloom-7b",
121
  "mode": "specific",
122
  "config": {