Spaces:
Runtime error
Runtime error
Update app_dialogue.py
Browse files- 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
|
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)
|