Skip to content

Commit 0bf4f7e

Browse files
committed
fix posix path
1 parent 40deb6b commit 0bf4f7e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

model2vec/persistence/persistence.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def _resolve_folder(folder_or_repo_path: Path, token: str | None, force_download
144144
if folder := maybe_get_cached_model_path(str(folder_or_repo_path)):
145145
return folder
146146

147-
folder = Path(huggingface_hub.snapshot_download(str(folder_or_repo_path), repo_type="model", token=token))
147+
folder = Path(
148+
huggingface_hub.snapshot_download(str(folder_or_repo_path.as_posix()), repo_type="model", token=token)
149+
)
148150

149151
return folder
150152

0 commit comments

Comments
 (0)