#12の修正を反映

main
NON906 2024-04-04 12:27:31 +09:00
parent 203cfed890
commit eac8d21ea3
1 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ def on_ui_tabs():
fn=lambda: [gr.update(interactive=False) for _ in set_interactive_items],
outputs=set_interactive_items,
).then(
fn=lambda t, c: ['', c + [(t, None)]],
fn=lambda t, c: ['', c + [(t, None)] if c is not None else [(t, None)]],
inputs=[text_input, chatbot],
outputs=[text_input, chatbot],
queue=False,
@ -572,7 +572,7 @@ def on_ui_tabs():
outputs=[text_input, chatbot],
queue=False,
).then(
fn=lambda t, c: ['', c + [(t, None)]],
fn=lambda t, c: ['', c + [(t, None)] if c is not None else [(t, None)]],
inputs=[text_input, chatbot],
outputs=[text_input, chatbot],
queue=False,