Spaces:
Running
Running
emoji code json id is string
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def predict(deepmoji_analysis, emoji_count):
|
|
50 |
ind_top_ids = top_elements(t_prob, emoji_count)
|
51 |
|
52 |
for ind in ind_top_ids:
|
53 |
-
return_label[emoji_codes[ind]] = t_prob[ind]
|
54 |
|
55 |
return return_label
|
56 |
|
|
|
50 |
ind_top_ids = top_elements(t_prob, emoji_count)
|
51 |
|
52 |
for ind in ind_top_ids:
|
53 |
+
return_label[emoji_codes[str(ind)]] = t_prob[ind]
|
54 |
|
55 |
return return_label
|
56 |
|