Spaces:
Running
Running
Move XTTS imports
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
@@ -17,9 +17,6 @@ from huggingface_hub import snapshot_download
|
|
17 |
|
18 |
from langdetect import detect
|
19 |
|
20 |
-
from TTS.tts.configs.xtts_config import XttsConfig
|
21 |
-
from TTS.tts.models.xtts import Xtts
|
22 |
-
|
23 |
from utils.vietnamese_normalization import normalize_vietnamese_text
|
24 |
from utils.logger import setup_logger
|
25 |
from utils.sentence import split_sentence, merge_sentences
|
@@ -68,6 +65,9 @@ except ImportError:
|
|
68 |
xtts_model = None
|
69 |
def load_model():
|
70 |
global xtts_model
|
|
|
|
|
|
|
71 |
|
72 |
repo_id = "jimmyvu/xtts"
|
73 |
snapshot_download(repo_id=repo_id,
|
|
|
17 |
|
18 |
from langdetect import detect
|
19 |
|
|
|
|
|
|
|
20 |
from utils.vietnamese_normalization import normalize_vietnamese_text
|
21 |
from utils.logger import setup_logger
|
22 |
from utils.sentence import split_sentence, merge_sentences
|
|
|
65 |
xtts_model = None
|
66 |
def load_model():
|
67 |
global xtts_model
|
68 |
+
|
69 |
+
from TTS.tts.configs.xtts_config import XttsConfig
|
70 |
+
from TTS.tts.models.xtts import Xtts
|
71 |
|
72 |
repo_id = "jimmyvu/xtts"
|
73 |
snapshot_download(repo_id=repo_id,
|