Spaces:
Build error
Build error
Gosse Minnema
commited on
Commit
•
b181317
1
Parent(s):
cdb3c01
Temporarily disable loading NLTK resources
Browse files
sociofillmore/webapp/app.py
CHANGED
@@ -45,12 +45,12 @@ from sociofillmore.common.analyze_text import (
|
|
45 |
from sociofillmore.crashes.utils import is_a_dutch_text
|
46 |
|
47 |
|
48 |
-
# download nltk packages if needed
|
49 |
-
if sys.argv[2] != "local":
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
# security (very basic!)
|
55 |
PROTECTED_DATASETS = [] # "femicides/rai"
|
56 |
if os.path.exists("secrets.json"):
|
|
|
45 |
from sociofillmore.crashes.utils import is_a_dutch_text
|
46 |
|
47 |
|
48 |
+
# # download nltk packages if needed
|
49 |
+
# if sys.argv[2] != "local":
|
50 |
+
# nltk.download("framenet_v17", download_dir="/nltk_data")
|
51 |
+
# nltk.download("punkt", download_dir="/nltk_data")
|
52 |
+
# print("Done!")
|
53 |
+
|
54 |
# security (very basic!)
|
55 |
PROTECTED_DATASETS = [] # "femicides/rai"
|
56 |
if os.path.exists("secrets.json"):
|