use dest in file client if provided
This commit is contained in:
parent
e91e08484b
commit
c9b1df9fdd
|
@ -26,7 +26,7 @@ class CivitaiClient(BaseClient):
|
|||
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)
|
||||
|
|
|
@ -29,4 +29,4 @@ class FileClient(BaseClient):
|
|||
) -> 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)
|
||||
|
|
Loading…
Reference in New Issue