sagarnildass commited on
Commit
ee19b96
·
verified ·
1 Parent(s): 99cfd69

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -114,9 +114,7 @@ If the user is engaging in discussion, try to steer them towards getting in touc
114
 
115
  def chat(self, message, history):
116
  messages = [{"role": "system", "content": self.system_prompt()}]
117
- for user_msg, assistant_msg in history:
118
- messages.append({"role": "user", "content": user_msg})
119
- messages.append({"role": "assistant", "content": assistant_msg})
120
  messages.append({"role": "user", "content": message})
121
  done = False
122
  while not done:
 
114
 
115
  def chat(self, message, history):
116
  messages = [{"role": "system", "content": self.system_prompt()}]
117
+ messages.extend(history)
 
 
118
  messages.append({"role": "user", "content": message})
119
  done = False
120
  while not done: