Spaces:
Running on Zero
Running on Zero
Download engine.py from tlkhoa/changevoice: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/tlkhoa/changevoice/resolve/main/engine.py
- Command line
-
hf download hf://spaces/tlkhoa/changevoice/engine.py
-
curl -L -o engine.py https://huggingface.co/spaces/tlkhoa/changevoice/resolve/main/engine.py
344 Bytes
| import os | |
| class RVCEngine: | |
| def __init__(self): | |
| self.model_path="models/voice.pth" | |
| self.index_path="models/voice.index" | |
| self.device="cuda" | |
| def load(self): | |
| print("Loading RVC model...") | |
| def convert(self,input_audio): | |
| print("Converting:",input_audio) | |
| return "output/output.wav" |