mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 14:17:09 -04:00
Remove the "Is typing..." yield by default
This commit is contained in:
parent
7278548cd1
commit
b30a73016d
1 changed files with 2 additions and 2 deletions
|
@ -656,7 +656,7 @@ def chatbot_wrapper(text, state, regenerate=False, _continue=False, loading_mess
|
||||||
update_message_metadata(output['metadata'], "user", row_idx, timestamp=get_current_timestamp())
|
update_message_metadata(output['metadata'], "user", row_idx, timestamp=get_current_timestamp())
|
||||||
|
|
||||||
# *Is typing...*
|
# *Is typing...*
|
||||||
if loading_message:
|
if loading_message and shared.processing_message:
|
||||||
yield {
|
yield {
|
||||||
'visible': output['visible'][:-1] + [[output['visible'][-1][0], shared.processing_message]],
|
'visible': output['visible'][:-1] + [[output['visible'][-1][0], shared.processing_message]],
|
||||||
'internal': output['internal'],
|
'internal': output['internal'],
|
||||||
|
@ -680,7 +680,7 @@ def chatbot_wrapper(text, state, regenerate=False, _continue=False, loading_mess
|
||||||
})
|
})
|
||||||
output['metadata'][key]["current_version_index"] = len(output['metadata'][key]["versions"]) - 1
|
output['metadata'][key]["current_version_index"] = len(output['metadata'][key]["versions"]) - 1
|
||||||
|
|
||||||
if loading_message:
|
if loading_message and shared.processing_message:
|
||||||
yield {
|
yield {
|
||||||
'visible': output['visible'][:-1] + [[visible_text, shared.processing_message]],
|
'visible': output['visible'][:-1] + [[visible_text, shared.processing_message]],
|
||||||
'internal': output['internal'][:-1] + [[text, '']],
|
'internal': output['internal'][:-1] + [[text, '']],
|
||||||
|
|
Loading…
Add table
Reference in a new issue