Spaces:
Running
Running
Commit
·
7d3ba25
1
Parent(s):
76b9122
Update app_dialogue.py
Browse files- 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.
|
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])
|