vishnun commited on
Commit
d153dea
β€’
1 Parent(s): 159412c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- gr.Interface(fn=do_ocr, inputs=inputs, outputs=[o1, o2]).launch()
 
 
 
 
 
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()