Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,7 @@ def get_top_emojis(text, top_n=TOP_N):
|
|
27 |
ranking = ranking.squeeze()[::-1][:top_n]
|
28 |
emojis = [model.config.id2label[i] for i in ranking]
|
29 |
return dict(zip(emojis, sorted_scores)
|
30 |
-
|
31 |
-
|
32 |
|
33 |
gradio_ui = gr.Interface(
|
34 |
fn=get_top_emojis,
|
|
|
27 |
ranking = ranking.squeeze()[::-1][:top_n]
|
28 |
emojis = [model.config.id2label[i] for i in ranking]
|
29 |
return dict(zip(emojis, sorted_scores)
|
30 |
+
|
|
|
31 |
|
32 |
gradio_ui = gr.Interface(
|
33 |
fn=get_top_emojis,
|