main
parent
c08bcb9407
commit
57fd58f7a1
|
|
@ -136,7 +136,6 @@ This prompt is automatically deleted and is not visible to the human.
|
|||
The image is always output at the end, not at the location where it is added.
|
||||
If there are multiple entries, only the first one will be reflected.
|
||||
There is no memory function, so please carry over the prompts from past conversations.
|
||||
Please output it first if possible.
|
||||
<|end_of_turn|>
|
||||
If you understand, please reply to the following:<|end_of_turn|>
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ def on_ui_tabs():
|
|||
del chat_history_images[str(len(chat_history) - 1)]
|
||||
input_text = chat_history[-1][0]
|
||||
chat_history = chat_history[:-1]
|
||||
if input_text is None or input_text == '':
|
||||
if input_text is None or input_text.isspace():
|
||||
if str(len(chat_history) - 1) in chat_history_images.keys():
|
||||
del chat_history_images[str(len(chat_history) - 1)]
|
||||
input_text = chat_history[-1][0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue