Antoine245 commited on
Commit
37b2fab
·
1 Parent(s): 926a0ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ with gr.Blocks() as demo:
32
  clear = gr.ClearButton([msg, chatbot])
33
 
34
  def user(user_message, history):
35
- return gr.update(value="", interactive=False), history + [[user_message, ""]]
36
- def bot(user_message,history):
37
  # chat_history.append(message) # Initialize chat history
38
  bot_message = palm.chat(
39
  context=context,
 
32
  clear = gr.ClearButton([msg, chatbot])
33
 
34
  def user(user_message, history):
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,