Antoine245 commited on
Commit
e3d17ed
·
1 Parent(s): 66b97fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
39
  bot_message = palm.chat(
40
  context=context,
41
  examples=examples,
42
- messages=history.slice(0, -2)
43
  )
44
  history[-1][1] = ""
45
  for character in bot_message:
 
39
  bot_message = palm.chat(
40
  context=context,
41
  examples=examples,
42
+ messages=history[:-2]
43
  )
44
  history[-1][1] = ""
45
  for character in bot_message: