Spaces:
Sleeping
Sleeping
Commit
•
acb20c6
1
Parent(s):
94dfa3a
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,11 @@ def ns2_inference(
|
|
41 |
text,
|
42 |
diffusion_steps=100,
|
43 |
):
|
|
|
|
|
|
|
|
|
|
|
44 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
45 |
|
46 |
os.environ["WORK_DIR"] = "./"
|
|
|
41 |
text,
|
42 |
diffusion_steps=100,
|
43 |
):
|
44 |
+
try:
|
45 |
+
import nltk
|
46 |
+
nltk.download('cmudict')
|
47 |
+
except:
|
48 |
+
pass
|
49 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
50 |
|
51 |
os.environ["WORK_DIR"] = "./"
|