mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
TTS extensions fixes after #4022
This commit is contained in:
parent
26f10854f3
commit
5dd212cf52
@ -174,7 +174,7 @@ def ui():
|
|||||||
convert_confirm.click(
|
convert_confirm.click(
|
||||||
lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr).then(
|
lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr).then(
|
||||||
remove_tts_from_history, gradio('history'), gradio('history')).then(
|
remove_tts_from_history, gradio('history'), gradio('history')).then(
|
||||||
chat.save_persistent_history, gradio('history', 'character_menu', 'mode'), None).then(
|
chat.save_history, gradio('history', 'unique_id', 'character_menu', 'mode'), None).then(
|
||||||
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
||||||
|
|
||||||
convert_cancel.click(lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr)
|
convert_cancel.click(lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr)
|
||||||
@ -183,7 +183,7 @@ def ui():
|
|||||||
show_text.change(
|
show_text.change(
|
||||||
lambda x: params.update({"show_text": x}), show_text, None).then(
|
lambda x: params.update({"show_text": x}), show_text, None).then(
|
||||||
toggle_text_in_history, gradio('history'), gradio('history')).then(
|
toggle_text_in_history, gradio('history'), gradio('history')).then(
|
||||||
chat.save_persistent_history, gradio('history', 'character_menu', 'mode'), None).then(
|
chat.save_history, gradio('history', 'unique_id', 'character_menu', 'mode'), None).then(
|
||||||
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
||||||
|
|
||||||
# Event functions to update the parameters in the backend
|
# Event functions to update the parameters in the backend
|
||||||
|
@ -229,7 +229,7 @@ def ui():
|
|||||||
convert_confirm.click(
|
convert_confirm.click(
|
||||||
lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr).then(
|
lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr).then(
|
||||||
remove_tts_from_history, gradio('history'), gradio('history')).then(
|
remove_tts_from_history, gradio('history'), gradio('history')).then(
|
||||||
chat.save_persistent_history, gradio('history', 'character_menu', 'mode'), None).then(
|
chat.save_history, gradio('history', 'unique_id', 'character_menu', 'mode'), None).then(
|
||||||
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
||||||
|
|
||||||
convert_cancel.click(lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr)
|
convert_cancel.click(lambda: [gr.update(visible=False), gr.update(visible=True), gr.update(visible=False)], None, convert_arr)
|
||||||
@ -238,7 +238,7 @@ def ui():
|
|||||||
show_text.change(
|
show_text.change(
|
||||||
lambda x: params.update({"show_text": x}), show_text, None).then(
|
lambda x: params.update({"show_text": x}), show_text, None).then(
|
||||||
toggle_text_in_history, gradio('history'), gradio('history')).then(
|
toggle_text_in_history, gradio('history'), gradio('history')).then(
|
||||||
chat.save_persistent_history, gradio('history', 'character_menu', 'mode'), None).then(
|
chat.save_history, gradio('history', 'unique_id', 'character_menu', 'mode'), None).then(
|
||||||
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
chat.redraw_html, gradio(ui_chat.reload_arr), gradio('display'))
|
||||||
|
|
||||||
# Event functions to update the parameters in the backend
|
# Event functions to update the parameters in the backend
|
||||||
|
Loading…
Reference in New Issue
Block a user