From de8574ae262ec354eb58c837def72b41d4575898 Mon Sep 17 00:00:00 2001 From: Yao Chi Date: Tue, 22 Oct 2024 10:10:36 +0800 Subject: [PATCH] Add replicate menu json (#176) * Refactor model fetching extension for SiliconCloud LLM and VLM APIs * Add VLM API support * Add image detail control to SiliconCloudVLMAPI * add a replicate of example menu --------- Co-authored-by: lcolok <425311101@qq.com> --- docs/docs/bizyair_example_menu.json | 35 +++++++++++++++++++++++++++++ docs/docs/news.json | 6 ----- showcase.py | 2 +- 3 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 docs/docs/bizyair_example_menu.json delete mode 100644 docs/docs/news.json diff --git a/docs/docs/bizyair_example_menu.json b/docs/docs/bizyair_example_menu.json new file mode 100644 index 00000000..78422a55 --- /dev/null +++ b/docs/docs/bizyair_example_menu.json @@ -0,0 +1,35 @@ +{ + "FLUX": { + "FLUX-schnell Text to Image(4 steps)": "bizyair_flux_schnell_workflow.json", + "FLUX-dev Text to Image": "bizyair_flux_dev_workflow.json", + "FLUX-dev Image to Image": "bizyair_flux_img2img_workflow.json", + "FLUX Simple Lora ": "bizyair_flux_simple_lora_workflow.json", + "FLUX PuLID": "bizyair_flux_pulid.json" + }, + "ControlNet Union": { + "Generate an image from a line drawing": "bizyair_showcase_interior_design.json", + "Design a submarine like a great white shark": "bizyair_showcase_shark_submarine.json", + "All types of ControlNet preprocessors": "bizyair_controlnet_preprocessor_workflow.json" + }, + "SD15": { + "UltimateSDUpscale": "bizyair_ultimate_sd_upscale.json" + }, + "SDXL": { + "Text to Image by BizyAir KSampler": "bizyair_showcase_ksampler_txt2img.json", + "Image to Image by BizyAir KSampler": "bizyair_showcase_ksampler_img2img.json", + "LoRA workflow by BizyAir KSampler": "bizyair_showcase_ksampler_lora.json", + "ControlNet workflow by BizyAir KSampler": "bizyair_showcase_ksampler_controlnet.json", + "IP Adapter workflow by BizyAir KSampler": "bizyair_showcase_ksampler_ipadapter.json", + "InstantID Basic workflow by BizyAir KSampler": "bizyair_sdxl_InstantID_basic.json" + }, + "Kolors": { + "Kolors Text to Image": "bizyair_kolors_txt2img.json", + "Kolors ControlNet Depth": "bizyair_kolors_controlnet.json", + "Kolors Inpainting": "bizyair_kolors_inpainting.json", + "Kolors IP-Adapter": "bizyair_kolors_ipa.json" + }, + "Remove the background from the image": "bizyair_showcase_remove_background.json", + "Super Resolution": "bizyair_showcase_realistic_superresolution.json", + "Recreate an existing image": "bizyair_flux_joycaption_img2img_workflow.json", + "Text Guided Segment Anything": "bizyair_text_guided_segment-anything.json" +} diff --git a/docs/docs/news.json b/docs/docs/news.json deleted file mode 100644 index a1b35271..00000000 --- a/docs/docs/news.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "BizyAir NEWS": { - "09/19 更新模型上传功能,显示上传进度条,上传模型大小不受 ComfyUI 限制": "https://siliconflow.github.io/BizyAir/model-host/introduce.html", - "09/06 发布 v0.2.0,支持使用自定义 LoRA,欢迎升级使用": "https://siliconflow.github.io/BizyAir/model-host/introduce.html" - } -} diff --git a/showcase.py b/showcase.py index 62defdd3..5112d957 100644 --- a/showcase.py +++ b/showcase.py @@ -26,7 +26,7 @@ async def get_bizyair_news(base_url="https://bizyair.siliconflow.cn"): print(f"Failed to fetch bznews.json: HTTP Status {response.status}") return {} except aiohttp.ClientError as e: - print(f"Error fetching news.json: {e}") + print(f"Error fetching bznews.json: {e}") return {} except asyncio.exceptions.TimeoutError as e: print(f"Request bizyair news timed out: {e}")