Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,6 @@ st = SentenceTokenizer(vocabulary, 100)
|
|
43 |
|
44 |
emojimodel = torchmoji_emojis("pytorch_model.bin")
|
45 |
|
46 |
-
if USE_GPU:
|
47 |
-
emojimodel.to("cuda:0")
|
48 |
-
|
49 |
def deepmojify(sentence, top_n=5, prob_only=False):
|
50 |
list_emojis = []
|
51 |
def top_elements(array, k):
|
|
|
43 |
|
44 |
emojimodel = torchmoji_emojis("pytorch_model.bin")
|
45 |
|
|
|
|
|
|
|
46 |
def deepmojify(sentence, top_n=5, prob_only=False):
|
47 |
list_emojis = []
|
48 |
def top_elements(array, k):
|