DerrylNessie commited on
Commit
38fd627
1 Parent(s): 644d5b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ title = 'EasyOCR'
35
  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.'
36
  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>"
37
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
38
- examples = ['korean.png',"korean"]
39
  choices = [
40
  "chinese",
41
  "english",
@@ -44,7 +44,7 @@ choices = [
44
  ]
45
  gr.Interface(
46
  inference,
47
- [gr.inputs.Image(type='file', label='Input'),gr.inputs.Dropdown(choices, type="value", default="korean", label='language')],
48
  [gr.outputs.Image(type='file', label='Output'), gr.outputs.Dataframe(headers=['text', 'confidence'])],
49
  title=title,
50
  description=description,
 
35
  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.'
36
  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>"
37
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
38
+ examples = ['korean.png',["korean"]]
39
  choices = [
40
  "chinese",
41
  "english",
 
44
  ]
45
  gr.Interface(
46
  inference,
47
+ [gr.inputs.Image(type='file', label='Input'),gr.inputs.Dropdown(choices, type="value", default=["korean"], label='language')],
48
  [gr.outputs.Image(type='file', label='Output'), gr.outputs.Dataframe(headers=['text', 'confidence'])],
49
  title=title,
50
  description=description,