simran0608 commited on
Commit
7731c83
·
verified ·
1 Parent(s): a479343

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,11 +31,11 @@ def inference(img, lang):
31
  title = 'PaddleOCR'
32
  description = 'PaddleOCR demo supports Spanish and English'
33
  article = ""
34
- examples = [['english.png','en'],['spanish.png','es']]
35
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
36
  app = gr.Interface(
37
  inference,
38
- [gr.Image(type='filepath', label='Input'),gr.Dropdown(choices=['es', 'en'], type="value", value='ch', label='language')],
39
  # gr.outputs.Image(type='file', label='Output'),
40
  outputs=["image", "text"],
41
  title=title,
 
31
  title = 'PaddleOCR'
32
  description = 'PaddleOCR demo supports Spanish and English'
33
  article = ""
34
+ examples = [['english.png','Englisg'],['spanish.png','Spanish']]
35
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
36
  app = gr.Interface(
37
  inference,
38
+ [gr.Image(type='filepath', label='Input'),gr.Dropdown(choices=['Spanish', 'English'], type="value", value='ch', label='language')],
39
  # gr.outputs.Image(type='file', label='Output'),
40
  outputs=["image", "text"],
41
  title=title,