Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -35,14 +35,11 @@ torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/m
|
|
35 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/44-Game-Pieces.jpg', '44-Game-Pieces.jpg')
|
36 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/45-Choose-Your-Own-Adventure.jpg', '45-Choose-Your-Own-Adventure.jpg')
|
37 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/46-Choose-Your-Own-Adventure.jpg', '46-Choose-Your-Own-Adventure.jpg')
|
38 |
-
|
39 |
-
|
40 |
torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/english.png', 'english.png')
|
41 |
torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/chinese.jpg', 'chinese.jpg')
|
42 |
torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/japanese.jpg', 'japanese.jpg')
|
43 |
torch.hub.download_url_to_file('https://i.imgur.com/mwQFd7G.jpeg', 'Hindi.jpeg')
|
44 |
-
examples = [
|
45 |
-
['20-Books.jpg',['en']],
|
46 |
['21-Books.jpg',['en']],
|
47 |
['22-Magazines.jpg',['en']],
|
48 |
['23-Magazines.jpg',['en']],
|
@@ -73,10 +70,7 @@ examples = [
|
|
73 |
['english.png',['en']],
|
74 |
['chinese.jpg',['ch_sim', 'en']],
|
75 |
['japanese.jpg',['ja', 'en']],
|
76 |
-
['Hindi.jpeg',['hi', 'en']]
|
77 |
-
]
|
78 |
-
|
79 |
-
|
80 |
|
81 |
|
82 |
def draw_boxes(image, bounds, color='yellow', width=2):
|
|
|
35 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/44-Game-Pieces.jpg', '44-Game-Pieces.jpg')
|
36 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/45-Choose-Your-Own-Adventure.jpg', '45-Choose-Your-Own-Adventure.jpg')
|
37 |
torch.hub.download_url_to_file('https://github.com/AaronCWacker/Yggdrasil/blob/main/images/46-Choose-Your-Own-Adventure.jpg', '46-Choose-Your-Own-Adventure.jpg')
|
|
|
|
|
38 |
torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/english.png', 'english.png')
|
39 |
torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/chinese.jpg', 'chinese.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 |
+
examples = [['20-Books.jpg',['en']],
|
|
|
43 |
['21-Books.jpg',['en']],
|
44 |
['22-Magazines.jpg',['en']],
|
45 |
['23-Magazines.jpg',['en']],
|
|
|
70 |
['english.png',['en']],
|
71 |
['chinese.jpg',['ch_sim', 'en']],
|
72 |
['japanese.jpg',['ja', 'en']],
|
73 |
+
['Hindi.jpeg',['hi', 'en']]]
|
|
|
|
|
|
|
74 |
|
75 |
|
76 |
def draw_boxes(image, bounds, color='yellow', width=2):
|