Spaces:
Running
on
Zero
Running
on
Zero
archivartaunik
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
# Імпартуем патрэбныя модулі
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
-
from tqdm import tqdm
|
5 |
-
from underthesea import sent_tokenize
|
6 |
-
from TTS.tts.configs.xtts_config import XttsConfig
|
7 |
-
from TTS.tts.models.xtts import Xtts
|
8 |
from huggingface_hub import hf_hub_download
|
9 |
import os
|
10 |
import sys
|
@@ -21,7 +17,10 @@ if os.path.exists("XTTSv2-Finetuning-for-New-Languages/TTS"):
|
|
21 |
|
22 |
# Дадаем тэчку TTS у PYTHONPATH
|
23 |
sys.path.append("./TTS")
|
24 |
-
|
|
|
|
|
|
|
25 |
# Вызначэнне прылады (выкарыстоўваецца GPU, калі даступна)
|
26 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
27 |
|
|
|
1 |
# Імпартуем патрэбныя модулі
|
2 |
import gradio as gr
|
3 |
import torch
|
|
|
|
|
|
|
|
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
import os
|
6 |
import sys
|
|
|
17 |
|
18 |
# Дадаем тэчку TTS у PYTHONPATH
|
19 |
sys.path.append("./TTS")
|
20 |
+
from tqdm import tqdm
|
21 |
+
from underthesea import sent_tokenize
|
22 |
+
from TTS.tts.configs.xtts_config import XttsConfig
|
23 |
+
from TTS.tts.models.xtts import Xtts
|
24 |
# Вызначэнне прылады (выкарыстоўваецца GPU, калі даступна)
|
25 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
26 |
|