Pendrokar commited on
Commit
b48129e
·
1 Parent(s): 9aba162

emoji code json id is string

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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