Download addtional/scripts/util.py from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/toto10/extensions/resolve/main/addtional/scripts/util.py
- Command line
-
hf download hf://toto10/extensions/addtional/scripts/util.py
-
curl -L -o util.py https://huggingface.co/toto10/extensions/resolve/main/addtional/scripts/util.py
259 Bytes
| import csv | |
| from io import StringIO | |
| from typing import List | |
| def split_path_list(path_list: str) -> List[str]: | |
| pl = [] | |
| with StringIO() as f: | |
| f.write(path_list) | |
| f.seek(0) | |
| for r in csv.reader(f): | |
| pl += r | |
| return pl | |