Spaces:
Runtime error
Runtime error
JustinLin610
commited on
Commit
·
0962f0f
1
Parent(s):
f41ac43
update
Browse files
app.py
CHANGED
@@ -189,7 +189,8 @@ description = "Gradio Demo for OFA-OCR. Upload your own image or click any one o
|
|
189 |
"\"Submit\" and then wait for the generated OCR result. "
|
190 |
article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
|
191 |
"Repo</a></p> "
|
192 |
-
examples = [['
|
|
|
193 |
io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
|
194 |
title=title, description=description, article=article, examples=examples,
|
195 |
allow_flagging=False, allow_screenshot=False)
|
|
|
189 |
"\"Submit\" and then wait for the generated OCR result. "
|
190 |
article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
|
191 |
"Repo</a></p> "
|
192 |
+
examples = [['EasyOCRLite/pics/lihe.png'], ['EasyOCRLite/pics/chinese.jpg'], ['EasyOCRLite/pics/paibian.jpeg'], \
|
193 |
+
['EasyOCRLite/pics/shupai.png'], ['EasyOCRLite/pics/zuowen.jpg']]
|
194 |
io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
|
195 |
title=title, description=description, article=article, examples=examples,
|
196 |
allow_flagging=False, allow_screenshot=False)
|