Commit
·
e3657e8
1
Parent(s):
85ae816
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
| 45 |
model_id = "pierreguillou/lilt-xlm-roberta-base-finetuned-DocLayNet-base_paragraphs_ml512-v4"
|
| 46 |
|
| 47 |
API_TOKEN = "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"
|
| 48 |
-
tokenizer = AutoTokenizer.from_pretrained(model_id,
|
| 49 |
model = AutoModelForTokenClassification.from_pretrained(model_id, use_auth_token=API_TOKEN);
|
| 50 |
model.to(device);
|
| 51 |
|
|
|
|
| 45 |
model_id = "pierreguillou/lilt-xlm-roberta-base-finetuned-DocLayNet-base_paragraphs_ml512-v4"
|
| 46 |
|
| 47 |
API_TOKEN = "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"
|
| 48 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, use_auth_token=API_TOKEN)
|
| 49 |
model = AutoModelForTokenClassification.from_pretrained(model_id, use_auth_token=API_TOKEN);
|
| 50 |
model.to(device);
|
| 51 |
|