Download app.py from krishnatherokar/captcha-recognition: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/krishnatherokar/captcha-recognition/resolve/main/app.py
- Command line
-
hf download hf://spaces/krishnatherokar/captcha-recognition/app.py
-
curl -L -o app.py https://huggingface.co/spaces/krishnatherokar/captcha-recognition/resolve/main/app.py
362 Bytes
| import gradio as gr | |
| from utils import predict_and_decode | |
| import os | |
| example_path = "examples" | |
| example_list = [os.path.join(example_path, f) for f in os.listdir(example_path)] | |
| interface = gr.Interface( | |
| fn=predict_and_decode, | |
| inputs=gr.Image(type="pil"), | |
| outputs="text", | |
| title="Captcha Recognition", | |
| examples=example_list | |
| ) | |
| interface.launch() |