Cyril666 commited on
Commit
7e22376
·
1 Parent(s): 0a94e79

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,9 +21,9 @@ def process_image(image):
21
  res = model(img)
22
  return postprocess(res, charset, 'alignment')[0][0]
23
 
24
- title = "Interactive demo: ABINet"
25
- description = "Demo for ABINet, ABINet uses a vision model and an explicit language model to recognize text in the wild, which are trained in end-to-end way. The language model (BCN) achieves bidirectional language representation in simulating cloze test, additionally utilizing iterative correction strategy. To use it, simply upload a (single-text line) image or use one of the example images below and click 'submit'. Results will show up in a few seconds."
26
- article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2103.06495.pdf'>Read Like Humans: Autonomous, Bidirectional and Iterative Language Modeling for Scene Text Recognition</a> | <a href='https://github.com/FangShancheng/ABINet'>Github Repo</a></p>"
27
 
28
  iface = gr.Interface(fn=process_image,
29
  inputs=gr.inputs.Image(type="pil"),
 
21
  res = model(img)
22
  return postprocess(res, charset, 'alignment')[0][0]
23
 
24
+ title = "张博强毕设中期展示(文本检测部分)"
25
+ #description = "张博强毕设中期展示(文本检测)"
26
+ #article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2103.06495.pdf'>Read Like Humans: Autonomous, Bidirectional and Iterative Language Modeling for Scene Text Recognition</a> | <a href='https://github.com/FangShancheng/ABINet'>Github Repo</a></p>"
27
 
28
  iface = gr.Interface(fn=process_image,
29
  inputs=gr.inputs.Image(type="pil"),