Update app.py
Browse files
app.py
CHANGED
@@ -10,16 +10,8 @@ import gradio as gr
|
|
10 |
from huggingface_hub import Repository
|
11 |
|
12 |
|
13 |
-
repo = Repository(
|
14 |
-
local_dir="secret_models",
|
15 |
-
repo_type="model",
|
16 |
-
clone_from="docparser/captcha",
|
17 |
-
token=True
|
18 |
-
)
|
19 |
-
repo.git_pull()
|
20 |
|
21 |
-
|
22 |
-
model_file = os.path.join(cwd,"secret_models","captcha.onnx")
|
23 |
img_size = (32,128)
|
24 |
charset = r"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
|
25 |
tokenizer_base = Tokenizer(charset)
|
|
|
10 |
from huggingface_hub import Repository
|
11 |
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
model_file = os.path.join(cwd,"captcha.onnx")
|
|
|
15 |
img_size = (32,128)
|
16 |
charset = r"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
|
17 |
tokenizer_base = Tokenizer(charset)
|