Update app.py
Browse files
app.py
CHANGED
@@ -11,4 +11,8 @@ def do_ocr(inp):
|
|
11 |
inputs = gr.inputs.Image()
|
12 |
o1 = gr.outputs.Image()
|
13 |
o2 = gr.outputs.Textbox()
|
14 |
-
|
|
|
|
|
|
|
|
|
|
11 |
inputs = gr.inputs.Image()
|
12 |
o1 = gr.outputs.Image()
|
13 |
o2 = gr.outputs.Textbox()
|
14 |
+
|
15 |
+
title = "CRAFT-OCR"
|
16 |
+
description = "OCR of both handwriting and printed text using CRAFT Text detector and TrOCR recoginition"
|
17 |
+
examples=[['example_1.png'],['example_2.jpg']]
|
18 |
+
gr.Interface(fn=do_ocr, inputs=inputs, outputs=[o1, o2], title=title, description=description, examples=examples,enable_queue=True).launch()
|