Spaces:
Running
Running
Consoli Sergio
commited on
Commit
·
c20b811
1
Parent(s):
e35b8d3
last changes
Browse files- CACHE_geonames.json +1 -1
- app-demo-myMultiNER.py +4 -4
CACHE_geonames.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{}
|
|
|
1 |
+
{"Melaka": {"": "https://sws.geonames.org/1734759/"}, "Selangor": {"": "https://sws.geonames.org/1733037/"}, "Negeri Sembilan": {"": "https://sws.geonames.org/1733043/"}, "Perak": {"": "https://sws.geonames.org/1733041/"}, "Malaysia": {"": "https://sws.geonames.org/1733045/"}, "Johor": {"": "https://sws.geonames.org/1733049/"}, "Africa": {"": "https://sws.geonames.org/6255146/"}, "Kedah": {"": "https://sws.geonames.org/1733048/"}}
|
app-demo-myMultiNER.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import os
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
|
9 |
from transformers import file_utils
|
10 |
print(file_utils.default_cache_path)
|
|
|
1 |
import os
|
2 |
|
3 |
+
os.environ["CUDA_VISIBLE_DEVICES"] = "1,6" # to use the GPUs 3,4 only
|
4 |
|
5 |
+
os.environ["HF_HUB_CACHE"] = "/eos/jeodpp/home/users/consose/cache/huggingface/hub"
|
6 |
+
os.environ["HUGGINGFACE_HUB_CACHE"] = "/eos/jeodpp/home/users/consose/cache/huggingface/hub"
|
7 |
+
os.environ["HF_HOME"] = "/eos/jeodpp/home/users/consose/cache/huggingface/hub"
|
8 |
|
9 |
from transformers import file_utils
|
10 |
print(file_utils.default_cache_path)
|