DerrylNessie commited on
Commit
69d5d3c
1 Parent(s): cd93030

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ def inference(img, lang):
91
  title = 'EasyOCR'
92
  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.'
93
  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>"
94
- css = ".output_image, .input_image {height: 100% !important; width: 40rem !important;}"
95
  examples = [['korean.jpg',"korean"]]
96
  choices = [
97
  "chinese",
@@ -101,7 +101,7 @@ choices = [
101
  ]
102
  gr.Interface(
103
  inference,
104
- [gr.inputs.Image(type='file', label='Input'),gr.inputs.Dropdown(choices, type="value", default="korean", label='language')],
105
  [gr.outputs.Image(type='file', label='Output'),
106
  #gr.outputs.Image(type='file', label='Output'),
107
  #gr.outputs.Image(type='file', label='Output'),
 
91
  title = 'EasyOCR'
92
  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.'
93
  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>"
94
+ css = ".output_image, .input_image {height: 300% !important; width: 40rem !important;}"
95
  examples = [['korean.jpg',"korean"]]
96
  choices = [
97
  "chinese",
 
101
  ]
102
  gr.Interface(
103
  inference,
104
+ [gr.inputs.Image(type='file', shape = (1700,2400), label='Input'),gr.inputs.Dropdown(choices, type="value", default="korean", label='language')],
105
  [gr.outputs.Image(type='file', label='Output'),
106
  #gr.outputs.Image(type='file', label='Output'),
107
  #gr.outputs.Image(type='file', label='Output'),