vanh99 commited on
Commit
4477976
·
verified ·
1 Parent(s): 08f9ce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ ONNX_MODEL_PATH = hf_hub_download(
23
  )
24
  IMG_HEIGHT = 50
25
  IMG_WIDTH = 160
26
- CHARSET = r"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
27
  IDX2CHAR = {i + 1: c for i, c in enumerate(CHARSET)}
28
  BLANK_LABEL = 0
29
 
@@ -75,7 +75,7 @@ iface = gr.Interface(
75
  inputs=gr.Image(type="pil", label="Input Image"),
76
  outputs=gr.Textbox(label="Predicted Text"),
77
  title="OCR for CAPTCHA",
78
- description="Solve captchas from images including letters and numbers.",
79
  examples=[]
80
  )
81
 
 
23
  )
24
  IMG_HEIGHT = 50
25
  IMG_WIDTH = 160
26
+ CHARSET = r"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
27
  IDX2CHAR = {i + 1: c for i, c in enumerate(CHARSET)}
28
  BLANK_LABEL = 0
29
 
 
75
  inputs=gr.Image(type="pil", label="Input Image"),
76
  outputs=gr.Textbox(label="Predicted Text"),
77
  title="OCR for CAPTCHA",
78
+ description="Solve captchas from images.",
79
  examples=[]
80
  )
81