JustinLin610 commited on
Commit
36bccc9
1 Parent(s): 35a37ac

update install ezocr

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -191,8 +191,8 @@ description = "Gradio Demo for OFA-OCR. Upload your own image or click any one o
191
  "\"Submit\" and then wait for the generated OCR result. "
192
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
193
  "Repo</a></p> "
194
- examples = [['EasyOCRLite/pics/lihe.png'], ['EasyOCRLite/pics/chinese.jpg'], ['EasyOCRLite/pics/paibian.jpeg'], \
195
- ['EasyOCRLite/pics/shupai.png'], ['EasyOCRLite/pics/zuowen.jpg']]
196
  io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
197
  title=title, description=description, article=article, examples=examples,
198
  allow_flagging=False, allow_screenshot=False)
 
191
  "\"Submit\" and then wait for the generated OCR result. "
192
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
193
  "Repo</a></p> "
194
+ examples = [['pics/lihe.png'], ['pics/chinese.jpg'], ['pics/paibian.jpeg'], \
195
+ ['pics/shupai.png'], ['pics/zuowen.jpg']]
196
  io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
197
  title=title, description=description, article=article, examples=examples,
198
  allow_flagging=False, allow_screenshot=False)