Skip to content

Commit fcc9276

Browse files
committed
Fix hf download
1 parent 4f5e6d8 commit fcc9276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fastembed/common/model_management.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def download_model(
252252
specific_model_path: Optional[str] = kwargs.get("specific_model_path", None)
253253
if specific_model_path:
254254
return Path(specific_model_path)
255-
255+
else:
256+
del kwargs["specific_model_path"]
256257
retries = 1 if local_files_only else retries
257258
hf_source = model.get("sources", {}).get("hf")
258259
url_source = model.get("sources", {}).get("url")

0 commit comments

Comments
 (0)