Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
hard coded deepmoji locations
Browse files
resources/app/plugins/deepmoji_plugin/DeepMoji/torchmoji/global_variables.py
CHANGED
@@ -16,9 +16,11 @@ SPECIAL_TOKENS = ['CUSTOM_MASK',
|
|
16 |
'CUSTOM_BREAK']
|
17 |
SPECIAL_TOKENS.extend(['{}BLANK_{}'.format(SPECIAL_PREFIX, i) for i in range(6, 10)])
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
22 |
|
23 |
WEIGHTS_DIR = tempfile.mkdtemp()
|
24 |
|
|
|
16 |
'CUSTOM_BREAK']
|
17 |
SPECIAL_TOKENS.extend(['{}BLANK_{}'.format(SPECIAL_PREFIX, i) for i in range(6, 10)])
|
18 |
|
19 |
+
VOCAB_PATH = '/home/user/.cache/huggingface/hub/models--Pendrokar--TorchMoji/snapshots/58217568daaf64d3621245dd5c88c94e651a08d6/vocabulary.json'
|
20 |
+
PRETRAINED_PATH = '/home/user/.cache/huggingface/hub/models--Pendrokar--TorchMoji/snapshots/58217568daaf64d3621245dd5c88c94e651a08d6/pytorch_model.bin'
|
21 |
+
# ROOT_PATH = dirname(dirname(abspath(__file__)))
|
22 |
+
# VOCAB_PATH = '{}/model/vocabulary.json'.format(ROOT_PATH)
|
23 |
+
# PRETRAINED_PATH = '{}/model/pytorch_model.bin'.format(ROOT_PATH)
|
24 |
|
25 |
WEIGHTS_DIR = tempfile.mkdtemp()
|
26 |
|