paran3xus commited on
Commit
e64972b
·
verified ·
1 Parent(s): f7954b0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -8,6 +8,7 @@ tags:
8
  A pretrained TrOCR model for Typst equation OCR tasks.
9
 
10
  ## Usage
 
11
  ```python
12
  from PIL import Image
13
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel
@@ -23,4 +24,6 @@ pixel_values = processor(images=images, return_tensors="pt").pixel_values
23
  generated_ids = model.generate(pixel_values)
24
  generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)
25
  [print(i) for i in generated_text]
26
- ```
 
 
 
8
  A pretrained TrOCR model for Typst equation OCR tasks.
9
 
10
  ## Usage
11
+ ### Using `transformers`
12
  ```python
13
  from PIL import Image
14
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel
 
24
  generated_ids = model.generate(pixel_values)
25
  generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)
26
  [print(i) for i in generated_text]
27
+ ```
28
+ ### Using Typress Client with Web Frontend
29
+ Check: https://github.com/ParaN3xus/typress