fix: 恢复模型原始文件名
Build and Deploy / build (push) Successful in 2m37s
Build and Deploy / deploy (push) Has been skipped

This commit is contained in:
2026-07-16 19:55:23 +00:00
parent e9d3bdbc68
commit 5dacb61122
6 changed files with 7 additions and 7 deletions
+7 -7
View File
@@ -15,16 +15,16 @@ type Handler struct {
mu sync.RWMutex
}
// 模型配置
// 模型配置:本地文件名 -> 远程文件名
var modelConfigs = map[string]string{
"math.onnx": "math.onnx",
"ocr.onnx": "ocr.onnx",
"rotate.onnx": "rotate.onnx",
"siamese.onnx": "siamese.onnx",
"charsets.txt": "charsets.txt",
"CRNN_Math.onnx": "[AntiCAP]-CRNN_Math.onnx",
"OCR.onnx": "[Dddd]-OCR.onnx",
"Rotation-RotNetR.onnx": "[AntiCAP]-Rotation-RotNetR.onnx",
"Siamese-ResNet18.onnx": "[AntiCAP]-Siamese-ResNet18.onnx",
"CharSets.txt": "[Dddd]-CharSets.txt",
}
// 从 Gitea 仓库下载(无需认证,公开仓库)
// 从 Gitea 仓库下载(公开仓库,无需认证
const modelBaseURL = "https://git.viaeon.com/admin/anticaptcha/raw/branch/main/models"
func NewHandler(modelPath string) *Handler {