mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
up
This commit is contained in:
parent
f64105bd3e
commit
06e0b4da3c
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user