dntrplytch's picture
Upload folder using huggingface_hub
7d134e4 verified
raw
history blame contribute delete
230 Bytes
import os
import sys
from typing import Union
if sys.version_info >= (3, 9):
StrPath = Union[str, os.PathLike[str]]
else:
# PathLike is only subscriptable at runtime in 3.9+
StrPath = Union[str, "os.PathLike[str]"]