Pendrokar commited on
Commit
320787e
·
1 Parent(s): df3b007

relative path to model?

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ from torchmoji.sentence_tokenizer import SentenceTokenizer
12
  from torchmoji.model_def import torchmoji_emojis
13
 
14
  model_name = "Uberduck/torchmoji"
15
- model_path = model_name + "/pytorch_model.bin"
16
- vocab_path = model_name + "/vocabulary.json"
17
 
18
  def top_elements(array, k):
19
  ind = np.argpartition(array, -k)[-k:]
 
12
  from torchmoji.model_def import torchmoji_emojis
13
 
14
  model_name = "Uberduck/torchmoji"
15
+ model_path = './' + model_name + "/pytorch_model.bin"
16
+ vocab_path = './' + model_name + "/vocabulary.json"
17
 
18
  def top_elements(array, k):
19
  ind = np.argpartition(array, -k)[-k:]