Update app.py
Browse files
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/
|
25 |
trainer = Trainer(model=model)
|
26 |
-
tokenizer = AutoTokenizer.from_pretrained("vonewman/
|
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/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):
|