Unverified Commit fdf55b1f authored by Dhruv Nair's avatar Dhruv Nair Committed by GitHub
Browse files

Fix posix path issue in testing utils (#6849)

update
parent c6f8c310
...@@ -522,7 +522,7 @@ def load_hf_numpy(path) -> np.ndarray: ...@@ -522,7 +522,7 @@ def load_hf_numpy(path) -> np.ndarray:
base_url = "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main" base_url = "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main"
if not path.startswith("http://") and not path.startswith("https://"): if not path.startswith("http://") and not path.startswith("https://"):
path = Path(base_url, urllib.parse.quote(path)).as_posix() path = os.path.join(base_url, urllib.parse.quote(path))
return load_numpy(path) return load_numpy(path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment