johann22 commited on
Commit
8f1148e
·
1 Parent(s): 92455e2

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +1 -1
app_dialogue.py CHANGED
@@ -682,7 +682,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
682
  return chat_update, text_update
683
  def remove_last_turn(chat_history):
684
  if len(chat_history) == 0:
685
- return None, None
686
  last_interaction = chat_history[-1]
687
  chat_history = chat_history[:-1]
688
  chat_update = gr.update(value=chat_history)
 
682
  return chat_update, text_update
683
  def remove_last_turn(chat_history):
684
  if len(chat_history) == 0:
685
+ return gr.update(), gr.update()
686
  last_interaction = chat_history[-1]
687
  chat_history = chat_history[:-1]
688
  chat_update = gr.update(value=chat_history)