Cyril666 commited on
Commit
0404923
·
1 Parent(s): e4fcad2

First model version

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
- #os.system('pip install --upgrade --no-cache-dir gdown')
3
- #os.system('gdown -O ./output/ctw/ 1Ajslu_9WisuZ2nJGzE6qbD87aK6_ozzA')
4
  os.system('pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"')
5
  os.system('python setup.py build develop --user')
6
  #os.system('pip install git+https://github.com/Cyril-Sterling/ContourNet')
@@ -32,8 +32,8 @@ def infer(filepath):
32
 
33
  iface = gr.Interface(
34
  fn=infer,
35
- title="Mask TextSpotter v3",
36
- description="Mask TextSpotter v3 is an end-to-end trainable scene text spotter that adopts a Segmentation Proposal Network (SPN) instead of an RPN. Mask TextSpotter v3 significantly improves robustness to rotations, aspect ratios, and shapes.",
37
  inputs=[gr.inputs.Image(label="image", type="filepath")],
38
  outputs=[gr.outputs.Image()], #, gr.outputs.Dataframe(headers=['word'])],
39
  #examples=['example1.jpg', 'example2.jpg', 'example3.jpg'],
 
1
  import os
2
+ os.system('pip install --upgrade --no-cache-dir gdown')
3
+ os.system('gdown -O ./output/ctw/ 1nhT7yuqJ8V8vfoJdI0Qn6notmoLFRrmm')
4
  os.system('pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"')
5
  os.system('python setup.py build develop --user')
6
  #os.system('pip install git+https://github.com/Cyril-Sterling/ContourNet')
 
32
 
33
  iface = gr.Interface(
34
  fn=infer,
35
+ title="张博强毕设展示",
36
+ description="毕设题目:自然场景中任意形状文字的检测与识别\n目前进度:检测",
37
  inputs=[gr.inputs.Image(label="image", type="filepath")],
38
  outputs=[gr.outputs.Image()], #, gr.outputs.Dataframe(headers=['word'])],
39
  #examples=['example1.jpg', 'example2.jpg', 'example3.jpg'],