Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import ViTFeatureExtractor, BertTokenizer, VisionEncoderDecode
|
|
2 |
import gradio as gr
|
3 |
|
4 |
title="Multilingual OCR (currently recognises: English and Chinese)"
|
5 |
-
description="mOCR(multilingual-OCR) is a Vision-Encoder-Decoder model which uses pre-trained facebook's vit-mae-large as the encoder and xlm-roberta-base as the decoder.
|
6 |
examples =[["demo_image/img1.png"], ["demo_image/img2.jpeg"], ["demo_image/img3.jpeg"], ["demo_image/img4.jpeg"], ["demo_image/img5.jpeg"], ["demo_image/img6.jpeg"]]
|
7 |
|
8 |
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
title="Multilingual OCR (currently recognises: English and Chinese)"
|
5 |
+
description="mOCR(multilingual-OCR) is a Vision-Encoder-Decoder model which uses pre-trained facebook's vit-mae-large as the encoder and xlm-roberta-base as the decoder. \nIt has been trained on IAM, SROIE 2019, text_renderer Chinese (synthetic) and TRDG (synthetic) datasets (amounting to approx 1.4 Million samples) for English and Chinese document text-recognition."
|
6 |
examples =[["demo_image/img1.png"], ["demo_image/img2.jpeg"], ["demo_image/img3.jpeg"], ["demo_image/img4.jpeg"], ["demo_image/img5.jpeg"], ["demo_image/img6.jpeg"]]
|
7 |
|
8 |
|