Update GPT_SoVITS/test_webui.py
Browse files- GPT_SoVITS/test_webui.py +14 -4
GPT_SoVITS/test_webui.py
CHANGED
|
@@ -1,11 +1,21 @@
|
|
| 1 |
-
import os
|
|
|
|
|
|
|
| 2 |
import LangSegment
|
| 3 |
-
import pdb
|
| 4 |
import torch
|
| 5 |
-
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
| 6 |
import numpy as np
|
| 7 |
import librosa
|
| 8 |
-
from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
if os.path.exists("./gweight.txt"):
|
| 10 |
with open("./gweight.txt", 'r', encoding="utf-8") as file:
|
| 11 |
gweight_data = file.read()
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import re
|
| 3 |
+
import logging
|
| 4 |
import LangSegment
|
|
|
|
| 5 |
import torch
|
|
|
|
| 6 |
import numpy as np
|
| 7 |
import librosa
|
| 8 |
+
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
| 9 |
+
from GPT_SoVITS.feature_extractor import cnhubert
|
| 10 |
+
from GPT_SoVITS.module.models import SynthesizerTrn
|
| 11 |
+
from GPT_SoVITS.AR.models.t2s_lightning_module import Text2SemanticLightningModule
|
| 12 |
+
from GPT_SoVITS.text import cleaned_text_to_sequence
|
| 13 |
+
from GPT_SoVITS.text.cleaner import clean_text
|
| 14 |
+
from GPT_SoVITS.module.mel_processing import spectrogram_torch
|
| 15 |
+
from GPT_SoVITS.my_utils import load_audio
|
| 16 |
+
from tools.i18n.i18n import I18nAuto
|
| 17 |
+
from time import time as ttime
|
| 18 |
+
import asyncio
|
| 19 |
if os.path.exists("./gweight.txt"):
|
| 20 |
with open("./gweight.txt", 'r', encoding="utf-8") as file:
|
| 21 |
gweight_data = file.read()
|