Update app.py
Browse files
app.py
CHANGED
|
@@ -29,10 +29,10 @@ def inference(img, lang):
|
|
| 29 |
im.save('result.jpg')
|
| 30 |
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
| 31 |
|
| 32 |
-
title = '
|
| 33 |
-
description = '
|
| 34 |
-
article = "<p style='text-align: center'
|
| 35 |
-
examples = [['english.png',['en']],['
|
| 36 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
| 37 |
choices = [
|
| 38 |
"ch_sim",
|
|
@@ -41,6 +41,7 @@ choices = [
|
|
| 41 |
"en",
|
| 42 |
"es",
|
| 43 |
"ja",
|
|
|
|
| 44 |
"ru"
|
| 45 |
]
|
| 46 |
gr.Interface(
|
|
|
|
| 29 |
im.save('result.jpg')
|
| 30 |
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
| 31 |
|
| 32 |
+
title = 'Image To Optical Character Recognition'
|
| 33 |
+
description = 'Multilingual OCR which works conveniently on all devices in multiple languages.'
|
| 34 |
+
article = "<p style='text-align: center'></p>"
|
| 35 |
+
examples = [['english.png',['en']],['chinese.jpg',['ch_sim', 'en']],['japanese.jpg',['ja', 'en']],['Hindi.jpeg',['hi', 'en']]]
|
| 36 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
| 37 |
choices = [
|
| 38 |
"ch_sim",
|
|
|
|
| 41 |
"en",
|
| 42 |
"es",
|
| 43 |
"ja",
|
| 44 |
+
"hi",
|
| 45 |
"ru"
|
| 46 |
]
|
| 47 |
gr.Interface(
|