Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Nov 7, 2024
1 parent 829b870 commit 79c4c63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_nailongremove/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from . import handler as handler
from .config import Config

__version__ = "2.3.0"
__version__ = "2.3.1"
__plugin_meta__ = PluginMetadata(
name="自动撤回奶龙",
description="一个基于图像分类模型的简单插件~",
Expand Down
4 changes: 2 additions & 2 deletions nonebot_plugin_nailongremove/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ def check_default_label_exists(cls, v: Dict[str, Any]): # noqa: N805
raise ValueError(f"Please ensure default label {DEFAULT_LABEL} in dict")
return v

@field_validator("nailong_onnx_provider_type", mode="before")
@field_validator("nailong_onnx_providers", mode="before")
def transform_to_list(cls, v: Any): # noqa: N805
return v if isinstance(v, list) else [v]

@field_validator("nailong_onnx_provider_type", mode="after")
@field_validator("nailong_onnx_providers", mode="after")
def validate_provider_available(cls, v: Any): # noqa: N805
try:
from onnxruntime.capi import _pybind_state as c
Expand Down

0 comments on commit 79c4c63

Please sign in to comment.