Spaces:
Running
Running
mrfakename
commited on
Commit
•
2c0eed0
1
Parent(s):
6aa0325
fix bug
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# WebUI by mrfakename
|
2 |
# Demo also available on HF Spaces: https://huggingface.co/spaces/mrfakename/MeloTTS
|
3 |
import gradio as gr
|
4 |
import os, torch, io
|
@@ -7,6 +7,8 @@ os.system('python -m unidic download')
|
|
7 |
from melo.api import TTS
|
8 |
speed = 1.0
|
9 |
import tempfile
|
|
|
|
|
10 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
11 |
models = {
|
12 |
'EN': TTS(language='EN', device=device),
|
|
|
1 |
+
# WebUI by mrfakename
|
2 |
# Demo also available on HF Spaces: https://huggingface.co/spaces/mrfakename/MeloTTS
|
3 |
import gradio as gr
|
4 |
import os, torch, io
|
|
|
7 |
from melo.api import TTS
|
8 |
speed = 1.0
|
9 |
import tempfile
|
10 |
+
import nltk
|
11 |
+
nltk.download('averaged_perceptron_tagger_eng')
|
12 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
13 |
models = {
|
14 |
'EN': TTS(language='EN', device=device),
|