Spaces:
Runtime error
Runtime error
fix nltk bug
Browse files
app.py
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import numpy as np
|
| 3 |
import torch
|
|
|
|
| 1 |
+
import nltk
|
| 2 |
+
import ssl
|
| 3 |
+
|
| 4 |
+
try:
|
| 5 |
+
_create_unverified_https_context = ssl._create_unverified_context
|
| 6 |
+
except AttributeError:
|
| 7 |
+
pass
|
| 8 |
+
else:
|
| 9 |
+
ssl._create_default_https_context = _create_unverified_https_context
|
| 10 |
+
nltk.download("cmudict")
|
| 11 |
+
|
| 12 |
import gradio as gr
|
| 13 |
import numpy as np
|
| 14 |
import torch
|