Minor changes

This commit is contained in:
oobabooga 2023-04-24 01:04:48 -03:00
parent 435f8cc0e7
commit 47809e28aa

View File

@ -806,7 +806,6 @@ def create_interface():
# notebook/default modes event handlers # notebook/default modes event handlers
else: else:
shared.input_params = [shared.gradio[k] for k in ['textbox', 'interface_state']] shared.input_params = [shared.gradio[k] for k in ['textbox', 'interface_state']]
if shared.args.notebook: if shared.args.notebook:
output_params = [shared.gradio[k] for k in ['textbox', 'markdown', 'html']] output_params = [shared.gradio[k] for k in ['textbox', 'markdown', 'html']]
else: else:
@ -908,7 +907,6 @@ if __name__ == "__main__":
# If any model has been selected, load it # If any model has been selected, load it
if shared.model_name != 'None': if shared.model_name != 'None':
model_settings = get_model_specific_settings(shared.model_name) model_settings = get_model_specific_settings(shared.model_name)
shared.settings.update(model_settings) # hijacking the interface defaults shared.settings.update(model_settings) # hijacking the interface defaults
update_model_parameters(model_settings, initial=True) # hijacking the command-line arguments update_model_parameters(model_settings, initial=True) # hijacking the command-line arguments