Skip to content

Commit

Permalink
use dest in file client if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 10, 2023
1 parent e91e084 commit c9b1df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/onnx_web/convert/client/civitai.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(
self,
conversion: ConversionContext,
token: Optional[str] = None,
root=CIVITAI_ROOT,
root: str = CIVITAI_ROOT,
):
self.root = conversion.get_setting("CIVITAI_ROOT", root)
self.token = conversion.get_setting("CIVITAI_TOKEN", token)
Expand Down
2 changes: 1 addition & 1 deletion api/onnx_web/convert/client/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def download(
) -> str:
parts = urlparse(uri)
logger.info("loading model from: %s", parts.path)
return path.join(conversion.model_path, parts.path)
return path.join(dest or conversion.model_path, parts.path)

0 comments on commit c9b1df9

Please sign in to comment.