mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Remove auto-loading when only one model is available (#3187)
This commit is contained in:
parent
a69955377a
commit
d7a14174a2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user