Support HF repos with subfolders in source on windows OS

This commit is contained in:
Brandon Rising 2024-08-30 15:37:42 -04:00
parent c83d0bb20e
commit 64a51fba41

View File

@ -103,7 +103,7 @@ class HFModelSource(StringLikeSource):
if self.variant:
base += f":{self.variant or ''}"
if self.subfolder:
base += f"::{self.subfolder}"
base += f"::{self.subfolder.as_posix()}"
return base