Spaces:
Sleeping
Sleeping
DeepLearning101
commited on
Commit
•
54bd4a5
1
Parent(s):
16dd633
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,10 @@ ssl._create_default_https_context = ssl._create_unverified_context
|
|
15 |
import nltk
|
16 |
|
17 |
nltk.download('cmudict')
|
|
|
|
|
|
|
|
|
18 |
from parrots import TextToSpeech
|
19 |
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
15 |
import nltk
|
16 |
|
17 |
nltk.download('cmudict')
|
18 |
+
|
19 |
+
# 下載 NLTK 所需的資料集
|
20 |
+
nltk.download('averaged_perceptron_tagger')
|
21 |
+
|
22 |
from parrots import TextToSpeech
|
23 |
|
24 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|