awacke1 commited on
Commit
14c4d61
1 Parent(s): ede572e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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 = 'EasyOCR'
33
- description = 'Gradio demo for EasyOCR. EasyOCR demo supports 80+ languages.To use it, simply upload your image and choose a language from the dropdown menu, or click one of the examples to load them. Read more at the links below.'
34
- article = "<p style='text-align: center'><a href='https://www.jaided.ai/easyocr/'>Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.</a> | <a href='https://github.com/JaidedAI/EasyOCR'>Github Repo</a></p>"
35
- examples = [['english.png',['en']],['thai.jpg',['th']],['french.jpg',['fr', 'en']],['chinese.jpg',['ch_sim', 'en']],['japanese.jpg',['ja', 'en']],['korean.png',['ko', 'en']],['Hindi.jpeg',['hi', '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(