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

First model version

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ 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'],
40
  #article="<a href=\"https://github.com/MhLiao/MaskTextSpotterV3\">GitHub Repo</a>",
 
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>",