Spaces:
Runtime error
Runtime error
Commit
·
edeec3c
1
Parent(s):
271a2e6
update dataframes
Browse files
app.py
CHANGED
@@ -199,7 +199,7 @@ examples = [['shupai.png'], ['chinese.jpg'], ['gaidao.jpeg'], ['qiaodaima.png'],
|
|
199 |
['benpao.jpeg'], ['wanli.png'], ['xsd.jpg']]
|
200 |
io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='filepath', label='Image'),
|
201 |
outputs=[gr.outputs.Image(type='pil', label='Image'),
|
202 |
-
gr.outputs.Dataframe(type='pandas', label='OCR Results')],
|
203 |
title=title, description=description, article=article, examples=examples)
|
204 |
io.launch()
|
205 |
|
|
|
199 |
['benpao.jpeg'], ['wanli.png'], ['xsd.jpg']]
|
200 |
io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='filepath', label='Image'),
|
201 |
outputs=[gr.outputs.Image(type='pil', label='Image'),
|
202 |
+
gr.outputs.Dataframe(headers=['Box ID', 'Text'], type='pandas', label='OCR Results')],
|
203 |
title=title, description=description, article=article, examples=examples)
|
204 |
io.launch()
|
205 |
|