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

First model version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,8 +34,8 @@ 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="pil")],
38
  outputs=[gr.outputs.Image()], #, gr.outputs.Dataframe(headers=['word'])],
39
  #examples=['example1.jpg', 'example2.jpg', 'example3.jpg'],
40
  #article="<a href=\"https://github.com/MhLiao/MaskTextSpotterV3\">GitHub Repo</a>",
41
- ).launch(debug=True)
 
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'],
40
  #article="<a href=\"https://github.com/MhLiao/MaskTextSpotterV3\">GitHub Repo</a>",
41
+ ).launch(enable_queue=True)