Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,7 @@ import os
|
|
6 |
|
7 |
# --- مدلها ---
|
8 |
try:
|
9 |
-
|
10 |
-
model_name = "m3hrdadfi/mt5-small-parsinlu-grammar-correction"
|
11 |
|
12 |
ocr_model = PaddleOCR(lang='fa', use_textline_orientation=True)
|
13 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
6 |
|
7 |
# --- مدلها ---
|
8 |
try:
|
9 |
+
model_name = "m3hrdadfi/mt5-small-finetuned-grammar-synthesis"
|
|
|
10 |
|
11 |
ocr_model = PaddleOCR(lang='fa', use_textline_orientation=True)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|