Spaces:
Runtime error
Runtime error
Download utils.py from Spraga/styletts2-ukrainian: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/Spraga/styletts2-ukrainian/resolve/main/utils.py
- Command line
-
hf download hf://spaces/Spraga/styletts2-ukrainian/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Spraga/styletts2-ukrainian/resolve/main/utils.py
248 Bytes
| from munch import Munch | |
| def recursive_munch(d): | |
| if isinstance(d, dict): | |
| return Munch((k, recursive_munch(v)) for k, v in d.items()) | |
| elif isinstance(d, list): | |
| return [recursive_munch(v) for v in d] | |
| else: | |
| return d |