Downloads · 30 days
3
9% of all-time downloads
nguyzn/epic-rpg-captcha-solver
epic-rpg-captcha-solver is a machine learning model from nguyzn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras.
Hosts the bundled TensorFlow CNN (trained on Kaggle from the images in model/data/) behind a Gradio app. Send a captcha image URL — e.g. a Discord attachment — and get back the predicted item class name.
Downloads · 30 days
3
9% of all-time downloads
All-time downloads
33
Public
Repo size
214 MB
Likes
0
Public
Click a slice to open those files.
.keras214 MB · 100%
From the Hugging Face model README
Hosts the bundled TensorFlow CNN (trained on Kaggle from the images in
model/data/) behind a Gradio app. Send a captcha image URL — e.g. a Discord
attachment — and get back the predicted item class name.
200x700 RGB captcha; resized internally).label, its confidence, the full
class_names list, and per-class probabilities.| File | What |
|---|---|
app.py | Gradio app + inference. |
classifier.keras | Trained model (~205 MB, Git LFS). |
class_names.json | Output-order class names. |
requirements.txt | Pinned deps (TensorFlow 2.19.0 = training env). |
.gitattributes | LFS rules for the model. |
The model is ~205 MB, so it must go through Git LFS or the push fails.
# 1. Create the Space on huggingface.co (SDK: Gradio), then clone it:
git clone https://huggingface.co/spaces/<your-username>/epic-guard-captcha
cd epic-guard-captcha
# 2. Copy the Space files in (from this repo's spaces/ folder):
cp /path/to/repo/spaces/{app.py,requirements.txt,README.md,.gitattributes,class_names.json} .
# 3. Copy the trained model in (renamed to match app.py):
cp /path/to/repo/model/classifier.keras ./classifier.keras
# 4. Track the model with LFS BEFORE adding it (.gitattributes already does this):
git lfs install
git lfs track "*.keras"
# 5. Commit & push — LFS uploads the big file:
git add .gitattributes app.py requirements.txt README.md class_names.json classifier.keras
git commit -m "Add Epic Guard captcha solver Space"
git 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.
Hardware: free CPU tier works. Inference on one captcha is fast; the cold start (loading a 205 MB Keras model) takes ~10-20 s on first request.
The same predict function is exposed at the API endpoint /predict.
from gradio_client import Client
client = Client("https://huggingface.co/spaces/<your-username>/epic-guard-captcha")
result = client.predict(
"https://cdn.discordapp.com/attachments/.../captcha.png",
api_name="/predict",
)
print(result["label"], result["confidence"])
# -> apple 0.985
predict never raises: on a bad/unreachable URL it returns
{"label": null, ..., "error": "..."} so the caller can fall back or ping a user.
captcha_bypasser.py already dispatches across backends. To add this Space,
add a solve_space(image_url) that calls the snippet above and returns
result["label"] when result["confidence"] >= captcha_min_confidence, else
None — matching the existing solve_roboflow / solve_local contract.