Skip to content

Commit

Permalink
fix(api): join globs to avoid py 3.10-only args
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 17, 2023
1 parent 0080d86 commit 0273dea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/onnx_web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-*'))



Expand Down

0 comments on commit 0273dea

Please sign in to comment.