ankrgyl commited on
Commit
7743a4e
1 Parent(s): 3dc6de3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -5
README.md CHANGED
@@ -26,7 +26,6 @@ tokenizer = AutoTokenizer.from_pretrained(
26
  nlp = pipeline(
27
  model="impira/layoutlm-document-qa",
28
  tokenizer=tokenizer,
29
- trust_remote_code=True,
30
  )
31
 
32
  nlp(
@@ -48,14 +47,12 @@ nlp(
48
  # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20}
49
  ```
50
 
51
- **NOTE**: This model was recently landed in transformers via [PR #18407](https://github.com/huggingface/transformers/pull/18407), so you'll need to use a recent version of transformers, for example:
52
 
53
  ```bash
54
- pip install git+https://github.com/huggingface/transformers.git@5c4c869014f5839d04c1fd28133045df0c91fd84
55
  ```
56
 
57
- The pipeline is currently in review ([PR #18414](https://github.com/huggingface/transformers/pull/18414)). In the meantime, you'll have to use the `trust_remote_code=True` flag to run it.
58
-
59
  ## About us
60
 
61
  This model was created by the team at [Impira](https://www.impira.com/).
 
26
  nlp = pipeline(
27
  model="impira/layoutlm-document-qa",
28
  tokenizer=tokenizer,
 
29
  )
30
 
31
  nlp(
 
47
  # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20}
48
  ```
49
 
50
+ **NOTE**: This model and pipeline was recently landed in transformers via [PR #18407](https://github.com/huggingface/transformers/pull/18407) and [PR #18414](https://github.com/huggingface/transformers/pull/18414), so you'll need to use a recent version of transformers, for example:
51
 
52
  ```bash
53
+ pip install git+https://github.com/huggingface/transformers.git@2ef774211733f0acf8d3415f9284c49ef219e991
54
  ```
55
 
 
 
56
  ## About us
57
 
58
  This model was created by the team at [Impira](https://www.impira.com/).