Antoine245 commited on
Commit
fef0baa
·
1 Parent(s): ab20db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,10 +35,11 @@ with gr.Blocks() as demo:
35
  return gr.update(value="", interactive=False), history + [[user_message, None]]
36
  def bot(history):
37
  # chat_history.append(message) # Initialize chat history
 
38
  bot_message = palm.chat(
39
  context=context,
40
  examples=examples,
41
- messages=response
42
  )
43
  history[-1][1] = ""
44
  for character in bot_message:
 
35
  return gr.update(value="", interactive=False), history + [[user_message, None]]
36
  def bot(history):
37
  # chat_history.append(message) # Initialize chat history
38
+ print(history)
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: