Spaces:
Running
Running
MatthiasPi
commited on
Update tasks/text.py
Browse files- tasks/text.py +1 -1
tasks/text.py
CHANGED
@@ -69,7 +69,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
69 |
path_tokenizer = "answerdotai/ModernBERT-base"
|
70 |
|
71 |
model = AutoModelForSequenceClassification.from_pretrained(path_model)
|
72 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
73 |
|
74 |
def preprocess_function(df):
|
75 |
return tokenizer(df["quote"], truncation=True)
|
|
|
69 |
path_tokenizer = "answerdotai/ModernBERT-base"
|
70 |
|
71 |
model = AutoModelForSequenceClassification.from_pretrained(path_model)
|
72 |
+
tokenizer = AutoTokenizer.from_pretrained(path_tokenizer)
|
73 |
|
74 |
def preprocess_function(df):
|
75 |
return tokenizer(df["quote"], truncation=True)
|