Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ summarization_model_name = 'sarahai/ruT5-base-summarizer'
|
|
13 |
summarization_model = T5ForConditionalGeneration.from_pretrained(summarization_model_name)
|
14 |
summarization_tokenizer = T5Tokenizer.from_pretrained(summarization_model_name)
|
15 |
|
16 |
-
def extract_text(image_path, lang='
|
17 |
reader = easyocr.Reader([lang])
|
18 |
results = reader.readtext(np.array(image_path))
|
19 |
|
|
|
13 |
summarization_model = T5ForConditionalGeneration.from_pretrained(summarization_model_name)
|
14 |
summarization_tokenizer = T5Tokenizer.from_pretrained(summarization_model_name)
|
15 |
|
16 |
+
def extract_text(image_path, lang='tjk'):
|
17 |
reader = easyocr.Reader([lang])
|
18 |
results = reader.readtext(np.array(image_path))
|
19 |
|