Skip to content

Commit 02338c9

Browse files
Change path to posix (testing_utils.py) (#6803)
change path to pathlib as_posix Co-authored-by: Sayak Paul <[email protected]>
1 parent 15ed53d commit 02338c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/utils/testing_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def load_hf_numpy(path) -> np.ndarray:
522522
base_url = "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main"
523523

524524
if not path.startswith("http://") and not path.startswith("https://"):
525-
path = os.path.join(base_url, urllib.parse.quote(path))
525+
path = Path(base_url, urllib.parse.quote(path)).as_posix()
526526

527527
return load_numpy(path)
528528

0 commit comments

Comments
 (0)