hantech commited on
Commit
ac90f56
β€’
1 Parent(s): 154403f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,6 @@ def inference(filepath, lang, labels):
87
  title = 'EasyOCR'
88
  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.'
89
  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>"
90
- 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']]]
91
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
92
  choices = [
93
  "vi"
@@ -100,5 +99,6 @@ gr.Interface(
100
  description=description,
101
  article=article,
102
  css=css,
 
103
  enable_queue=True
104
  ).launch(debug=True)
 
87
  title = 'EasyOCR'
88
  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.'
89
  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>"
 
90
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
91
  choices = [
92
  "vi"
 
99
  description=description,
100
  article=article,
101
  css=css,
102
+ examples=['giaytiepnhan.jpg','giaytiepnhan2.jpg']
103
  enable_queue=True
104
  ).launch(debug=True)