Download rvc_engine/utils.py from aj1980/alaa: direct link, hf CLI and curl.
- Browser
- Download file 107 Bytes
-
https://huggingface.co/spaces/aj1980/alaa/resolve/main/rvc_engine/utils.py
- Command line
-
hf download hf://spaces/aj1980/alaa/rvc_engine/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/aj1980/alaa/resolve/main/rvc_engine/utils.py
107 Bytes
| import torch | |
| def get_device(): | |
| if torch.cuda.is_available(): | |
| return "cuda" | |
| return "cpu" |