Antoine245 commited on
Commit
49d36ed
·
1 Parent(s): e029e46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -35,11 +35,12 @@ with gr.Blocks() as demo:
35
  return gr.update(value="", interactive=False), history + [[user_message,None]]
36
  def bot(history):
37
  # Remove the second element of the last element of the list
38
- del history[-1][1]
 
39
  bot_message = palm.chat(
40
  context=context,
41
  examples=examples,
42
- messages=history
43
  )
44
  history[-1][1] = ""
45
  for character in bot_message:
 
35
  return gr.update(value="", interactive=False), history + [[user_message,None]]
36
  def bot(history):
37
  # Remove the second element of the last element of the list
38
+ # del history[-1][1]
39
+ print(history[-1][0])
40
  bot_message = palm.chat(
41
  context=context,
42
  examples=examples,
43
+ messages=history[-1][0]
44
  )
45
  history[-1][1] = ""
46
  for character in bot_message: