空欄処理

main
NON906 2024-01-21 14:28:25 +09:00
parent 0718e0f67b
commit ad47920387
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ If you understand, please reply to the following:<|end_of_turn|>
if prompt is None:
prompt = tag[len('!['):-len('](sd-prompt:// "result")')]
ret_message = ret_message.replace(tag, '')
if ret_message == '':
if ret_message.isspace():
return None, prompt
end_index = ret_message.rfind('![')
if end_index >= 0: