Antoine245 commited on
Commit
9dc96d3
·
1 Parent(s): 331a826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,11 +54,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
54
  clear = gr.Button("Clear")
55
 
56
  def user(user_message, history):
57
- return gr.update(value=""), history + [[user_message, None]]
 
58
 
59
  def bot(history):
60
  try:
61
- history.append("NEXT REQUEST")
62
  bot_message = palm.chat(
63
  context=context,
64
  examples=examples,
 
54
  clear = gr.Button("Clear")
55
 
56
  def user(user_message, history):
57
+ return gr.update(value=""), history.append(user_message)
58
+
59
 
60
  def bot(history):
61
  try:
 
62
  bot_message = palm.chat(
63
  context=context,
64
  examples=examples,