1# 1. Create the Space on huggingface.co (SDK: Gradio), then clone it:
2git clone https://huggingface.co/spaces/<your-username>/epic-guard-captcha
3cd epic-guard-captcha
4
5# 2. Copy the Space files in (from this repo's spaces/ folder):
6cp /path/to/repo/spaces/{app.py,requirements.txt,README.md,.gitattributes,class_names.json} .
7
8# 3. Copy the trained model in (renamed to match app.py):
9cp /path/to/repo/model/classifier.keras ./classifier.keras
10
11# 4. Track the model with LFS BEFORE adding it (.gitattributes already does this):
12git lfs install
13git lfs track "*.keras"
14
15# 5. Commit & push — LFS uploads the big file:
16git add .gitattributes app.py requirements.txt README.md class_names.json classifier.keras
17git commit -m "Add Epic Guard captcha solver Space"
18git push
The Space will build (installing TensorFlow takes a few minutes the first time),
then serve at https://<your-username>-epic-guard-captcha.hf.space.
1from gradio_client import Client
2
3client = Client("https://huggingface.co/spaces/<your-username>/epic-guard-captcha")
4result = client.predict(
5 "https://cdn.discordapp.com/attachments/.../captcha.png",
6 api_name="/predict",
7)
8print(result["label"], result["confidence"])
9# -> apple 0.985