Commit
·
b4b999a
1
Parent(s):
dad2fcf
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ from transformers import AutoTokenizer, AutoModelForTokenClassification
|
|
| 42 |
import torch
|
| 43 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 44 |
|
| 45 |
-
model_id = "pierreguillou/lilt-xlm-roberta-base-finetuned-DocLayNet-
|
| 46 |
|
| 47 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 48 |
model = AutoModelForTokenClassification.from_pretrained(model_id);
|
|
|
|
| 42 |
import torch
|
| 43 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 44 |
|
| 45 |
+
model_id = "pierreguillou/lilt-xlm-roberta-base-finetuned-with-DocLayNet-base-at-paragraphlevel-ml512"
|
| 46 |
|
| 47 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 48 |
model = AutoModelForTokenClassification.from_pretrained(model_id);
|