OmidSakaki commited on
Commit
d3485e2
·
verified ·
1 Parent(s): 2939714

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
5
  import os
6
 
7
  # --- مدل‌ها ---
8
- ocr_model = PaddleOCR(lang='fa', use_angle_cls=True)
9
  tokenizer = AutoTokenizer.from_pretrained("persiannlp/mt5-small-parsinlu-grammar-correction")
10
  nlp_model = AutoModelForSeq2SeqLM.from_pretrained("persiannlp/mt5-small-parsinlu-grammar-correction")
11
 
 
5
  import os
6
 
7
  # --- مدل‌ها ---
8
+ ocr_model = PaddleOCR(lang='fa', use_textline_orientation=True)
9
  tokenizer = AutoTokenizer.from_pretrained("persiannlp/mt5-small-parsinlu-grammar-correction")
10
  nlp_model = AutoModelForSeq2SeqLM.from_pretrained("persiannlp/mt5-small-parsinlu-grammar-correction")
11