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
|
return info
|
||||||
|
|
||||||
|
|
||||||
|
OWNER = "nkxingxh"
|
||||||
|
REPO = "NailongDetection"
|
||||||
|
|
||||||
model_path = ModelUpdater(
|
model_path = ModelUpdater(
|
||||||
"nkxingxh",
|
OWNER,
|
||||||
"NailongDetection",
|
REPO,
|
||||||
lambda x: x.endswith(model_filename_sfx),
|
lambda x: x.endswith(model_filename_sfx),
|
||||||
).get()
|
).get()
|
||||||
|
|
||||||
labels_path = GitHubLatestReleaseModelUpdater(
|
labels_path = GitHubLatestReleaseModelUpdater(
|
||||||
"nkxingxh",
|
OWNER,
|
||||||
"NailongDetection",
|
REPO,
|
||||||
lambda x: x == "labels.txt",
|
lambda x: x == "labels.txt",
|
||||||
).get()
|
).get()
|
||||||
labels = labels_path.read_text("u8").splitlines()
|
labels = labels_path.read_text("u8").splitlines()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user