Add files via upload

This commit is contained in:
liujing04
2023-04-16 18:56:20 +08:00
committed by GitHub
parent 5bcaa171ea
commit 0719b4aa5e
6 changed files with 18 additions and 5 deletions

5
gui.py
View File

@@ -1,3 +1,6 @@
import os,sys
now_dir = os.getcwd()
sys.path.append(now_dir)
import PySimpleGUI as sg
import sounddevice as sd
import noisereduce as nr
@@ -12,7 +15,7 @@ from infer_pack.models import SynthesizerTrnMs256NSFsid, SynthesizerTrnMs256NSFs
from i18n import I18nAuto
i18n = I18nAuto()
print(i18n.language_map)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")