multimodalart HF staff commited on
Commit
7d3ba25
1 Parent(s): 76b9122

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +1 -1
app_dialogue.py CHANGED
@@ -923,7 +923,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
923
 
924
  def remove_last_turn(chat_history):
925
  if len(chat_history) == 0:
926
- return gr.Update(), gr.Update()
927
  last_interaction = chat_history[-1]
928
  chat_history = chat_history[:-1]
929
  last_interaction[0] = re.sub(r"!\[]\(/file=.*?\)", "", last_interaction[0])
 
923
 
924
  def remove_last_turn(chat_history):
925
  if len(chat_history) == 0:
926
+ return gr.update(), gr.update()
927
  last_interaction = chat_history[-1]
928
  chat_history = chat_history[:-1]
929
  last_interaction[0] = re.sub(r"!\[]\(/file=.*?\)", "", last_interaction[0])