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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -116,10 +116,7 @@ def main():
116
 
117
  ## Get context
118
  params = {
119
- "chat_history": [
120
- {"content": x["content"]} for x in st.session_state.messages[:-5],
121
- #{"content": prompt}
122
- ],
123
  "model": "bloom-7b",
124
  "mode": "specific",
125
  "config": {
 
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": {