Add back a variable to keep old extensions working

This commit is contained in:
oobabooga 2023-08-14 09:39:06 -07:00
parent d8a82d34ed
commit 4d067e9b52

View File

@ -121,7 +121,10 @@ def create_chat_settings_ui():
def create_event_handlers(): def create_event_handlers():
gen_events = [] gen_events = []
shared.input_params = gradio(inputs) # Obsolete, kept for compatibility with old extensions
# Obsolete variables, kept for compatibility with old extensions
shared.input_params = gradio(inputs)
shared.reload_inputs = gradio(reload_arr)
gen_events.append(shared.gradio['Generate'].click( gen_events.append(shared.gradio['Generate'].click(
ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then( ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then(