Files
CaptchBreaker/server.py
Hua 68ab86e6b9 Refactor server.py: add base64 support, separate from training
- POST /solve accepts JSON with base64 encoded image
- POST /solve/upload keeps multipart file upload compatibility
- Server only depends on inference code (onnxruntime), no torch
- Catch invalid image errors with proper 400 response
- Update CLAUDE.md with new API documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 19:28:09 +08:00

3.5 KiB