Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,13 +11,13 @@ torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/m
|
|
| 11 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/21-Books.jpg', '21-Books.jpg')
|
| 12 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/22-Magazines.jpg', '22-Magazines.jpg')
|
| 13 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/23-Magazines.jpg', '23-Magazines.jpg')
|
| 14 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/24-Card-Games.jpg', '24-Card-Games.jpg')
|
| 15 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/25-Games.jpg', '25-Games.jpg')
|
| 16 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/26-Books.jpg', '26-Books.jpg')
|
| 17 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/27-Books.jpg', '27-Books.jpg')
|
| 18 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/28-Books.jpg', '28-Books.jpg')
|
| 19 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/27-Games.jpg', '27-Games.jpg')
|
| 20 |
-
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/28-Games.jpg', '28-Games.jpg')
|
| 21 |
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/29-Books-Science-Fiction.jpg', '29-Books-Science-Fiction.jpg')
|
| 22 |
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/30-Manga-Books.jpg', '30-Manga-Books.jpg')
|
| 23 |
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/31-Books.jpg', '31-Books.jpg')
|
|
@@ -40,18 +40,14 @@ torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/m
|
|
| 40 |
#torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/japanese.jpg', 'japanese.jpg')
|
| 41 |
#torch.hub.download_url_to_file('https://i.imgur.com/mwQFd7G.jpeg', 'Hindi.jpeg')
|
| 42 |
|
| 43 |
-
|
| 44 |
-
['
|
| 45 |
-
['
|
| 46 |
-
['
|
| 47 |
-
['
|
| 48 |
-
['
|
| 49 |
-
['
|
| 50 |
-
['
|
| 51 |
-
['27-Books.jpg',['en']],
|
| 52 |
-
['28-Books.jpg',['en']],
|
| 53 |
-
['27-Games.jpg',['en']],
|
| 54 |
-
['28-Games.jpg',['en']]]
|
| 55 |
|
| 56 |
#['29-Books-Science-Fiction.jpg',['en']],
|
| 57 |
#['30-Manga-Books.jpg',['en']],
|
|
@@ -97,6 +93,7 @@ title = 'Image To Optical Character Recognition'
|
|
| 97 |
description = 'Multilingual OCR which works conveniently on all devices in multiple languages.'
|
| 98 |
article = "<p style='text-align: center'></p>"
|
| 99 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
|
|
|
| 100 |
|
| 101 |
choices = [
|
| 102 |
"ch_sim",
|
|
|
|
| 11 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/21-Books.jpg', '21-Books.jpg')
|
| 12 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/22-Magazines.jpg', '22-Magazines.jpg')
|
| 13 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/23-Magazines.jpg', '23-Magazines.jpg')
|
| 14 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/24-Card-Games.jpg', '24-Card-Games.jpg')
|
| 15 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/25-Games.jpg', '25-Games.jpg')
|
| 16 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/26-Books.jpg', '26-Books.jpg')
|
| 17 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/27-Books.jpg', '27-Books.jpg')
|
| 18 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/28-Books.jpg', '28-Books.jpg')
|
| 19 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/27-Games.jpg', '27-Games.jpg')
|
| 20 |
+
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/28-Games.jpg', '28-Games.jpg')
|
| 21 |
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/29-Books-Science-Fiction.jpg', '29-Books-Science-Fiction.jpg')
|
| 22 |
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/30-Manga-Books.jpg', '30-Manga-Books.jpg')
|
| 23 |
#torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/31-Books.jpg', '31-Books.jpg')
|
|
|
|
| 40 |
#torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/japanese.jpg', 'japanese.jpg')
|
| 41 |
#torch.hub.download_url_to_file('https://i.imgur.com/mwQFd7G.jpeg', 'Hindi.jpeg')
|
| 42 |
|
| 43 |
+
#,
|
| 44 |
+
#['24-Card-Games.jpg',['en']],
|
| 45 |
+
#['25-Games.jpg',['en']],
|
| 46 |
+
#['26-Books.jpg',['en']],
|
| 47 |
+
#['27-Books.jpg',['en']],
|
| 48 |
+
#['28-Books.jpg',['en']],
|
| 49 |
+
#['27-Games.jpg',['en']],
|
| 50 |
+
#['28-Games.jpg',['en']]]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
#['29-Books-Science-Fiction.jpg',['en']],
|
| 53 |
#['30-Manga-Books.jpg',['en']],
|
|
|
|
| 93 |
description = 'Multilingual OCR which works conveniently on all devices in multiple languages.'
|
| 94 |
article = "<p style='text-align: center'></p>"
|
| 95 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
| 96 |
+
examples = [['20-Books.jpg',['en']],['21-Books.jpg',['en']],['22-Magazines.jpg',['en']],['23-Magazines.jpg',['en']]]
|
| 97 |
|
| 98 |
choices = [
|
| 99 |
"ch_sim",
|