Remove auto-loading when only one model is available (#3187)

This commit is contained in:
jllllll 2023-07-18 09:39:08 -05:00 committed by GitHub
parent a69955377a
commit d7a14174a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1125,10 +1125,6 @@ if __name__ == "__main__":
if shared.args.model is not None: if shared.args.model is not None:
shared.model_name = shared.args.model shared.model_name = shared.args.model
# Only one model is available
elif len(available_models) == 1:
shared.model_name = available_models[0]
# Select the model from a command-line menu # Select the model from a command-line menu
elif shared.args.model_menu: elif shared.args.model_menu:
if len(available_models) == 0: if len(available_models) == 0: