Skip to content

Commit

Permalink
Add replicate menu json (#176)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
doombeaker and lcolok authored Oct 22, 2024
1 parent fd62455 commit de8574a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
35 changes: 35 additions & 0 deletions docs/docs/bizyair_example_menu.json
Original file line number Diff line number Diff line change
@@ -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"
}
6 changes: 0 additions & 6 deletions docs/docs/news.json

This file was deleted.

2 changes: 1 addition & 1 deletion showcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit de8574a

Please sign in to comment.