Format code (#989)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-08-13 11:52:51 +08:00
committed by GitHub
parent 7293002f53
commit 76b67842ba
10 changed files with 218 additions and 117 deletions

View File

@@ -1,5 +1,6 @@
import os, sys,pdb
os.environ["OMP_NUM_THREADS"]="2"
import os, sys, pdb
os.environ["OMP_NUM_THREADS"] = "2"
if sys.platform == "darwin":
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
@@ -47,8 +48,9 @@ if __name__ == "__main__":
import torchaudio.transforms as tat
from i18n import I18nAuto
import rvc_for_realtime
i18n = I18nAuto()
device=rvc_for_realtime.config.device
device = rvc_for_realtime.config.device
# device = torch.device(
# "cuda"
# if torch.cuda.is_available()
@@ -61,7 +63,6 @@ if __name__ == "__main__":
for _ in range(n_cpu):
Harvest(inp_q, opt_q).start()
class GUIConfig:
def __init__(self) -> None:
self.pth_path: str = ""