Spaces:
Runtime error
Runtime error
JustinLin610
commited on
Commit
•
945769d
1
Parent(s):
36bccc9
update install ezocr
Browse files
app.py
CHANGED
@@ -191,8 +191,7 @@ 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 = [['
|
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)
|
|
|
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 = [['lihe.png'], ['chinese.jpg'], ['paibian.jpeg'], ['shupai.png'], ['zuowen.jpg']]
|
|
|
195 |
io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Textbox(label="Caption"),
|
196 |
title=title, description=description, article=article, examples=examples,
|
197 |
allow_flagging=False, allow_screenshot=False)
|