pierreguillou
commited on
Commit
•
ff69eac
1
Parent(s):
819fc2b
Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,14 @@ os.system('python -m pip install --upgrade pip')
|
|
51 |
|
52 |
## model / feature extractor / tokenizer
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
# get device
|
55 |
import torch
|
56 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
51 |
|
52 |
## model / feature extractor / tokenizer
|
53 |
|
54 |
+
model_id_lilt = "pierreguillou/lilt-xlm-roberta-base-finetuned-with-DocLayNet-base-at-paragraphlevel-ml512"
|
55 |
+
model_id1 = model_id_lilt
|
56 |
+
model_id_layoutxlm = "pierreguillou/layout-xlm-base-finetuned-with-DocLayNet-base-at-paragraphlevel-ml512"
|
57 |
+
model_id2 = model_id_layoutxlm
|
58 |
+
|
59 |
+
# tokenizer for LayoutXLM
|
60 |
+
tokenizer_id_layoutxlm = "xlm-roberta-base"
|
61 |
+
|
62 |
# get device
|
63 |
import torch
|
64 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|