From 06e0b4da3c4f8cf8dd740b207aa5cd021969dda9 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Thu, 31 Oct 2024 19:54:27 +0800 Subject: [PATCH] up --- .../model/target_detection.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nonebot_plugin_nailongremove/model/target_detection.py b/nonebot_plugin_nailongremove/model/target_detection.py index bf4d888..86b857a 100644 --- a/nonebot_plugin_nailongremove/model/target_detection.py +++ b/nonebot_plugin_nailongremove/model/target_detection.py @@ -22,15 +22,18 @@ class ModelUpdater(GitHubLatestReleaseModelUpdater): return info +OWNER = "nkxingxh" +REPO = "NailongDetection" + model_path = ModelUpdater( - "nkxingxh", - "NailongDetection", + OWNER, + REPO, lambda x: x.endswith(model_filename_sfx), ).get() labels_path = GitHubLatestReleaseModelUpdater( - "nkxingxh", - "NailongDetection", + OWNER, + REPO, lambda x: x == "labels.txt", ).get() labels = labels_path.read_text("u8").splitlines()