Prgckwb
commited on
Commit
•
716153a
1
Parent(s):
574f7ec
fix error
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import os
|
|
3 |
import gradio as gr
|
4 |
import nltk
|
5 |
|
6 |
-
|
7 |
from melo.api import TTS # noqa: E402
|
8 |
|
9 |
-
|
10 |
|
11 |
# Get device
|
12 |
device = "auto"
|
|
|
3 |
import gradio as gr
|
4 |
import nltk
|
5 |
|
6 |
+
os.system("python -m unidic download")
|
7 |
from melo.api import TTS # noqa: E402
|
8 |
|
9 |
+
nltk.download("averaged_perceptron_tagger_eng")
|
10 |
|
11 |
# Get device
|
12 |
device = "auto"
|