younsmirzai commited on
Commit
fe770e5
·
verified ·
1 Parent(s): 0589f5a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +5 -17
README.md CHANGED
@@ -1,25 +1,13 @@
1
  ---
2
- pipeline_tag: text2text-generation
 
 
 
3
  tags:
4
  - t5
5
  - pytorch
6
- - text2text-generation
7
  ---
8
 
9
  # StackAdvisor Order Extractor
10
 
11
- T5-small model fine-tuned for extracting delivery order information from OCR text.
12
-
13
- ## Usage
14
- ```python
15
- from transformers import T5ForConditionalGeneration, T5Tokenizer
16
-
17
- model = T5ForConditionalGeneration.from_pretrained("younsmirzai/stackadvisor-extractor")
18
- tokenizer = T5Tokenizer.from_pretrained("younsmirzai/stackadvisor-extractor")
19
-
20
- text = "£6.04 2 orders Sainsbury's SA18JA Accept and go"
21
- inputs = tokenizer(text, return_tensors="pt", max_length=256, truncation=True)
22
- outputs = model.generate(**inputs, max_length=128)
23
- result = tokenizer.decode(outputs[0], skip_special_tokens=True)
24
- print(result)
25
- ```
 
1
  ---
2
+ language: en
3
+ license: mit
4
+ library_name: transformers
5
+ pipeline_tag: text-generation
6
  tags:
7
  - t5
8
  - pytorch
 
9
  ---
10
 
11
  # StackAdvisor Order Extractor
12
 
13
+ T5-small model for extracting delivery order information from OCR text.