Spaces:
Runtime error
Runtime error
| import subprocess | |
| import os | |
| import torch | |
| import urllib.request | |
| if torch.cuda.is_available(): | |
| print("Using GPU") | |
| else: | |
| print("Using CPU") | |
| # Clone the repository | |
| subprocess.run(["git", "clone", "https://github.com/poiqazwsx/Ilaria-RVC-Mainline-Huggingface"], check=True) | |
| # chande directory | |
| os.chdir("Ilaria-RVC-Mainline-Huggingface") | |
| # installing other requirements | |
| subprocess.run(["pip", "install", "-r", "requirements.txt"], check=True) | |
| print("Finished Installing") | |
| subprocess.run(["python", "infer-web.py"], check=True) | |