fix(api): join globs to avoid py 3.10-only args
This commit is contained in:
parent
0080d86d91
commit
0273dea2a6
|
@ -208,11 +208,11 @@ def load_models(context: ServerContext):
|
|||
global correction_models
|
||||
global upscaling_models
|
||||
|
||||
diffusion_models = glob(context.model_path, 'diffusion-*')
|
||||
diffusion_models.append(glob(context.model_path, 'stable-diffusion-*'))
|
||||
diffusion_models = glob(path.join(context.model_path, 'diffusion-*'))
|
||||
diffusion_models.append(glob(path.join(context.model_path, 'stable-diffusion-*')))
|
||||
|
||||
correction_models = glob(context.model_path, 'correction-*')
|
||||
upscaling_models = glob(context.model_path, 'upscaling-*')
|
||||
correction_models = glob(path.join(context.model_path, 'correction-*'))
|
||||
upscaling_models = glob(path.join(context.model_path, 'upscaling-*'))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue