From e6978243cc182f3ac858402731c7d0f682041e60 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 10 Dec 2023 10:57:25 -0600 Subject: [PATCH] fix download location for networks --- api/onnx_web/convert/client/huggingface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/onnx_web/convert/client/huggingface.py b/api/onnx_web/convert/client/huggingface.py index 68a6a853..02044e50 100644 --- a/api/onnx_web/convert/client/huggingface.py +++ b/api/onnx_web/convert/client/huggingface.py @@ -35,7 +35,7 @@ class HuggingfaceClient(BaseClient): return hf_hub_download( repo_id=source, filename="learned_embeds.bin", - cache_dir=conversion.cache_path, + cache_dir=dest or conversion.cache_path, force_filename=f"{name}.bin", token=self.token, )