Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,11 @@ def get_top_emojis(text, tokenizer, model, top_n=TOP_N):
|
|
26 |
return '\t'.join(map(str, emojis))
|
27 |
|
28 |
|
29 |
-
cur_model_name = DEFAULT_MODEL
|
30 |
-
print("cur_model", cur_model_name)
|
31 |
|
32 |
def main():
|
|
|
|
|
|
|
33 |
tokenizer = AutoTokenizer.from_pretrained(cur_model_name)
|
34 |
model = AutoModelForSequenceClassification.from_pretrained(cur_model_name)
|
35 |
|
|
|
26 |
return '\t'.join(map(str, emojis))
|
27 |
|
28 |
|
|
|
|
|
29 |
|
30 |
def main():
|
31 |
+
cur_model_name = DEFAULT_MODEL
|
32 |
+
print("cur_model", cur_model_name)
|
33 |
+
|
34 |
tokenizer = AutoTokenizer.from_pretrained(cur_model_name)
|
35 |
model = AutoModelForSequenceClassification.from_pretrained(cur_model_name)
|
36 |
|