nielsr HF staff commited on
Commit
70dd60f
1 Parent(s): 106a8af

Fix model_type

Browse files

The model_type needs to be set to "layoutlm" in order for it to work with the DocumentQA pipeline (and hence the widget).

Files changed (1) hide show
  1. config.json +1 -1
config.json CHANGED
@@ -16,7 +16,7 @@
16
  "layer_norm_eps": 1e-05,
17
  "max_2d_position_embeddings": 1024,
18
  "max_position_embeddings": 514,
19
- "model_type": "layoutlm-tc",
20
  "num_attention_heads": 12,
21
  "num_hidden_layers": 12,
22
  "pad_token_id": 1,
 
16
  "layer_norm_eps": 1e-05,
17
  "max_2d_position_embeddings": 1024,
18
  "max_position_embeddings": 514,
19
+ "model_type": "layoutlm",
20
  "num_attention_heads": 12,
21
  "num_hidden_layers": 12,
22
  "pad_token_id": 1,