Skip to content

Commit

Permalink
fix(api): make LPW pipeline valid again
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jun 11, 2023
1 parent 82a80bb commit d47dab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ def get_valid_pipeline(self, group: str, pipeline: str = None) -> str:
if pipeline in ["controlnet", "lpw", "panorama", "pix2pix"]:
return pipeline
elif group == "inpaint":
if pipeline in ["controlnet", "panorama"]:
if pipeline in ["controlnet", "lpw", "panorama"]:
return pipeline
elif group == "txt2img":
if pipeline in ["panorama"]:
if pipeline in ["lpw", "panorama"]:
return pipeline

logger.debug("pipeline %s is not valid for %s", pipeline, group)
Expand Down

0 comments on commit d47dab8

Please sign in to comment.