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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1125,10 +1125,6 @@ if __name__ == "__main__":
if shared.args.model is not None:
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
elif shared.args.model_menu:
if len(available_models) == 0: