Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
|
|
5 |
import os
|
6 |
|
7 |
# --- مدلها ---
|
8 |
-
ocr_model = PaddleOCR(lang='fa',
|
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 |
|