Antoine245 commited on
Commit
2a11265
·
1 Parent(s): ce40fe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -54,8 +54,7 @@ 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.append([user_message, None])
58
-
59
 
60
  def bot(history):
61
  try:
 
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: