Unverified Commit 02338c93 authored by Stephen's avatar Stephen Committed by GitHub
Browse files

Change path to posix (testing_utils.py) (#6803)



change path to pathlib as_posix
Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
parent 15ed53d2
...@@ -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 = os.path.join(base_url, urllib.parse.quote(path)) path = Path(base_url, urllib.parse.quote(path)).as_posix()
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