Spaces:
Runtime error
Runtime error
Commit
·
552a15a
1
Parent(s):
4ea4e2c
Update app.py
Browse files
app.py
CHANGED
@@ -31,19 +31,13 @@ def inference(img, lang):
|
|
31 |
im.save('result.jpg')
|
32 |
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
33 |
|
34 |
-
title = '🖼️Image to Multilingual OCR👁️Gradio'
|
35 |
-
description = 'Multilingual OCR which works conveniently on all devices in multiple languages.'
|
36 |
article = "<p style='text-align: center'></p>"
|
37 |
|
38 |
examples = [
|
39 |
-
|
40 |
-
['20-Books.jpg',['en']],['COVID.png',['en']],['chinese.jpg',['ch_sim', 'en']],['japanese.jpg',['ja', 'en']],['Hindi.jpeg',['hi', 'en']]
|
41 |
-
]
|
42 |
|
43 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
44 |
choices = [
|
45 |
-
"ch_sim",
|
46 |
-
"ch_tra",
|
47 |
"de",
|
48 |
"en",
|
49 |
"es",
|
|
|
31 |
im.save('result.jpg')
|
32 |
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
33 |
|
|
|
|
|
34 |
article = "<p style='text-align: center'></p>"
|
35 |
|
36 |
examples = [
|
37 |
+
['20-Books.jpg',['en']],['https://app.konfuzio.com/page/show-image/3129045/',['en']]]
|
|
|
|
|
38 |
|
39 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
40 |
choices = [
|
|
|
|
|
41 |
"de",
|
42 |
"en",
|
43 |
"es",
|