Pendrokar commited on
Commit
28c457e
β€’
1 Parent(s): 0df5421

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
- ROOT_PATH = dirname(dirname(abspath(__file__)))
20
- VOCAB_PATH = '{}/model/vocabulary.json'.format(ROOT_PATH)
21
- PRETRAINED_PATH = '{}/model/pytorch_model.bin'.format(ROOT_PATH)
 
 
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