MatthiasPi commited on
Commit
98c9262
·
verified ·
1 Parent(s): 1a314d1

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. 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("answerdotai/ModernBERT-base")
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)