Spaces:
Runtime error
Runtime error
Commit
·
86a11b0
1
Parent(s):
bfde413
Update files/functions.py
Browse files- files/functions.py +0 -8
files/functions.py
CHANGED
|
@@ -169,14 +169,6 @@ feature_extractor = LayoutLMv2FeatureExtractor(apply_ocr=False)
|
|
| 169 |
from transformers import AutoTokenizer
|
| 170 |
tokenizer_layoutxlm = AutoTokenizer.from_pretrained(tokenizer_id_layoutxlm)
|
| 171 |
|
| 172 |
-
# get labels
|
| 173 |
-
id2label_lilt = model_lilt.config.id2label
|
| 174 |
-
label2id_lilt = model_lilt.config.label2id
|
| 175 |
-
num_labels_lilt = len(id2label_lilt)
|
| 176 |
-
|
| 177 |
-
id2label_layoutxlm = model_layoutxlm.config.id2label
|
| 178 |
-
label2id_layoutxlm = model_layoutxlm.config.label2id
|
| 179 |
-
num_labels_layoutxlm = len(id2label_layoutxlm)
|
| 180 |
|
| 181 |
## General
|
| 182 |
|
|
|
|
| 169 |
from transformers import AutoTokenizer
|
| 170 |
tokenizer_layoutxlm = AutoTokenizer.from_pretrained(tokenizer_id_layoutxlm)
|
| 171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
|
| 173 |
## General
|
| 174 |
|