Fix Essential Code + selectfolder fix

As part of the restructuring essential code was removed that handled the --path parameter correctly. This has now been restored. Selectfolder was also updated to use its NeoCustom counterpart instead of specifying a model so that the underlying code that corrects model names is being hit again.
This commit is contained in:
Henk 2022-06-08 11:30:00 +02:00
parent 6a324b0e75
commit 461cd04932
1 changed files with 8 additions and 2 deletions

View File

@ -942,8 +942,14 @@ def general_startup():
if(modpath):
# Save directory to vars
vars.model = modpath
vars.model = "NeoCustom"
vars.custmodpth = modpath
elif args.model:
print("Welcome to KoboldAI!\nYou have selected the following Model:", vars.model)
if args.path:
print("You have selected the following path for your Model :", args.path)
vars.custmodpth = args.path;
vars.colaburl = args.path + "/request"; # Lets just use the same parameter to keep it simple
#==================================================================#
# Load Model
#==================================================================#