vonewman commited on
Commit
92910b2
1 Parent(s): 08eb663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def convert_json(df: pd.DataFrame):
21
  return json_string
22
 
23
  def load_model():
24
- model = AutoModelForTokenClassification.from_pretrained("vonewman/wolof-finetuned-ner")
25
  trainer = Trainer(model=model)
26
- tokenizer = AutoTokenizer.from_pretrained("vonewman/wolof-finetuned-ner")
27
  return trainer, model, tokenizer
28
 
29
  def align_word_ids(texts):
 
21
  return json_string
22
 
23
  def load_model():
24
+ model = AutoModelForTokenClassification.from_pretrained("vonewman/xlm-roberta-base-finetuned-wolof")
25
  trainer = Trainer(model=model)
26
+ tokenizer = AutoTokenizer.from_pretrained("vonewman/xlm-roberta-base-finetuned-wolof")
27
  return trainer, model, tokenizer
28
 
29
  def align_word_ids(texts):