ylacombe HF staff commited on
Commit
245ae02
1 Parent(s): d8b41f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ def bot(history, system_prompt=""):
122
  system_prompt = system_message
123
 
124
  history[-1][1] = ""
125
- for character in generate(system_prompt, history):
126
  history[-1][1] = character
127
  yield history
128
 
 
122
  system_prompt = system_message
123
 
124
  history[-1][1] = ""
125
+ for character in generate(history[-1][0], history[:-1]):
126
  history[-1][1] = character
127
  yield history
128