Spaces:
Paused
Paused
Update app.py
Browse files
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
|
| 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 |
|