Spaces:
Runtime error
Runtime error
Commit ·
7d3ba25
1
Parent(s): 76b9122
Update app_dialogue.py
Browse files922 unmodified lines923924925926927928929922 unmodified linesdef remove_last_turn(chat_history):if len(chat_history) == 0:return gr.Update(), gr.Update()last_interaction = chat_history[-1]chat_history = chat_history[:-1]last_interaction[0] = re.sub(r"!\[]\(/file=.*?\)", "", last_interaction[0])922 unmodified lines923924925926927928929922 unmodified linesdef remove_last_turn(chat_history):if len(chat_history) == 0:return gr.update(), gr.update()last_interaction = chat_history[-1]chat_history = chat_history[:-1]last_interaction[0] = re.sub(r"!\[]\(/file=.*?\)", "", last_interaction[0])
app_dialogue.py+1-1