Spaces:
Running
Running
relative path to model?
Browse files
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:]
|