JustinLin610 commited on
Commit
e8046c0
1 Parent(s): 8860979

add new files

Browse files
Files changed (4) hide show
  1. app.py +1 -1
  2. benpao.jpeg +0 -0
  3. gaidao.jpeg +0 -0
  4. qiaodaima.png +0 -0
app.py CHANGED
@@ -192,7 +192,7 @@ description = "Gradio Demo for Chinese OCR. Upload your own image or click any o
192
  "中文OCR体验区。欢迎上传图片,静待检测文字返回~"
193
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
194
  "Repo</a></p> "
195
- examples = [['shupai.png'], ['chinese.jpg']]
196
  io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='filepath', label='Image'),
197
  outputs=[gr.outputs.Image(type='pil', label='Image'), gr.outputs.Textbox(label="OCR result")],
198
  title=title, description=description, article=article, examples=examples)
 
192
  "中文OCR体验区。欢迎上传图片,静待检测文字返回~"
193
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
194
  "Repo</a></p> "
195
+ examples = [['shupai.png'], ['chinese.jpg'], ['gaidao.jpeg'], ['qiaodaima.png'], ['benpao.jpeg']]
196
  io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='filepath', label='Image'),
197
  outputs=[gr.outputs.Image(type='pil', label='Image'), gr.outputs.Textbox(label="OCR result")],
198
  title=title, description=description, article=article, examples=examples)
benpao.jpeg ADDED
gaidao.jpeg ADDED
qiaodaima.png ADDED