Support external FunCaptcha ONNX fallback

This commit is contained in:
Hua
2026-03-12 19:53:51 +08:00
parent 221af67bf4
commit 201e517b86
7 changed files with 181 additions and 13 deletions

View File

@@ -254,6 +254,10 @@ FUN_CAPTCHA_TASKS = {
"num_candidates": 4,
"answer_index_base": 0,
"channels": 3,
"external_model_env": "FUNCAPTCHA_ROLLBALL_MODEL_PATH",
"fallback_model_paths": [
str(PROJECT_ROOT.parent / "funcaptcha-server" / "model" / "4_3d_rollball_animals.onnx"),
],
},
}