From 3c4fe7976d349bb0f0495a1befdc4aa3e8fa2daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sat, 14 Dec 2024 19:21:15 +0800 Subject: [PATCH] . --- py/files/defaultconfig/ocrsetting.json | 25 +++++++++--- py/files/defaultconfig/static_data.json | 51 ------------------------- 2 files changed, 20 insertions(+), 56 deletions(-) diff --git a/py/files/defaultconfig/ocrsetting.json b/py/files/defaultconfig/ocrsetting.json index 017db9a4..e885e2e4 100644 --- a/py/files/defaultconfig/ocrsetting.json +++ b/py/files/defaultconfig/ocrsetting.json @@ -214,10 +214,10 @@ "custom_prompt": "" }, "argstype": { - "BASE_URL": { - "name": "API接口地址", - "rank": 0 - }, + "BASE_URL": { + "name": "API接口地址", + "rank": 0 + }, "key": { "rank": 2, "name": "API Key" @@ -322,7 +322,10 @@ }, "mangaocr": { "args": { - "Port": 5665 + "Port": 5665, + "项目仓库": "https://github.com/kha-white/manga-ocr", + "整合包_CPU": "{main_server}/Resource/IntegrationPack/manga_ocr/cpu", + "整合包_GPU": "{main_server}/Resource/IntegrationPack/manga_ocr/gpu" }, "argstype": { "Port": { @@ -330,6 +333,18 @@ "min": 1, "max": 65535, "step": 1 + }, + "项目仓库": { + "type": "label", + "islink": true + }, + "整合包_CPU": { + "type": "label", + "islink": true + }, + "整合包_GPU": { + "type": "label", + "islink": true } } } diff --git a/py/files/defaultconfig/static_data.json b/py/files/defaultconfig/static_data.json index c5ce6b06..d381093a 100644 --- a/py/files/defaultconfig/static_data.json +++ b/py/files/defaultconfig/static_data.json @@ -488,57 +488,6 @@ } ] }, - { - "name": "OCR", - "sources": [ - { - "name": "本地OCR_语言包", - "links": [ - { - "name": "日语", - "link": "{main_server}/Resource/ocr_models/ja.zip" - }, - { - "name": "英语", - "link": "{main_server}/Resource/ocr_models/en.zip" - }, - { - "name": "简体中文", - "link": "{main_server}/Resource/ocr_models/zh.zip" - }, - { - "name": "繁体中文", - "link": "{main_server}/Resource/ocr_models/cht.zip" - }, - { - "name": "韩语", - "link": "{main_server}/Resource/ocr_models/ko.zip" - }, - { - "name": "俄语", - "link": "{main_server}/Resource/ocr_models/ru.zip" - } - ] - }, - { - "name": "manga-ocr", - "links": [ - { - "name": "项目仓库", - "link": "https://github.com/kha-white/manga-ocr" - }, - { - "name": "整合包_CPU", - "link": "{main_server}/Resource/IntegrationPack/manga_ocr/cpu" - }, - { - "name": "整合包_GPU", - "link": "{main_server}/Resource/IntegrationPack/manga_ocr/gpu" - } - ] - } - ] - }, { "name": "辞书", "sources": [