From 0d90cf53ceb9d5be2eae5f94a327ff2b2d9cf748 Mon Sep 17 00:00:00 2001 From: xiyihan0 <71264788+xiyihan0@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:58:02 +0800 Subject: [PATCH] Update demo.py --- demo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo.py b/demo.py index e78f6b1..d014e73 100644 --- a/demo.py +++ b/demo.py @@ -158,6 +158,11 @@ def appapi_search(aapi): novel = json_result.novels[0] print(">>> {}, origin url: {}".format(novel.title, novel.image_urls["large"])) + json_result = aapi.search_illust("AI生成", search_target="exact_match_for_tags", search_ai_type=0) + # 关闭AI搜索选项后,将过滤掉所有illust_ai_type=2的插画,而illust_ai_type=1 or 0 的插画将被保留 + # 但是,加入了"AI生成"的tag却没有在作品提交时打开“AI生成”的开关的作品不会被筛选出结果列表 + print(json_result["illusts"][0]) + def appapi_user_search(aapi): json_result = aapi.illust_ranking("day_male")