Add danbooru-mcp auto-start, git sync, status API endpoints, navbar status indicators, and LLM format retry
- app.py: add subprocess import; add _ensure_mcp_repo() to clone/pull danbooru-mcp from https://git.liveaodh.com/aodhan/danbooru-mcp into tools/danbooru-mcp/ at startup; add ensure_mcp_server_running() which calls _ensure_mcp_repo() then starts the Docker container if not running; add GET /api/status/comfyui and GET /api/status/mcp health endpoints; fix call_llm() to retry up to 3 times on unexpected response format (KeyError/IndexError), logging the raw response and prompting the LLM to respond with valid JSON before each retry - templates/layout.html: add ComfyUI and MCP status dot indicators to navbar; add polling JS that checks both endpoints on load and every 30s - static/style.css: add .service-status, .status-dot, .status-ok, .status-error, .status-checking styles and status-pulse keyframe animation - .gitignore: add tools/ to exclude the cloned danbooru-mcp repo
This commit is contained in:
@@ -22,7 +22,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Arcade_-_Illustrious.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "4rc4d3"
|
||||
"lora_triggers": "4rc4d3",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"indoors",
|
||||
@@ -34,4 +36,4 @@
|
||||
"neon_lights",
|
||||
"retro_artstyle"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/ArcadeV2.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "4rc4d3"
|
||||
"lora_triggers": "4rc4d3",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"arcade",
|
||||
@@ -33,4 +35,4 @@
|
||||
"stool",
|
||||
"dim_lighting"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Backstage.safetensors",
|
||||
"lora_weight": 0.8,
|
||||
"lora_triggers": "b4ckst4g3"
|
||||
"lora_triggers": "b4ckst4g3",
|
||||
"lora_weight_min": 0.8,
|
||||
"lora_weight_max": 0.8
|
||||
},
|
||||
"tags": [
|
||||
"backstage",
|
||||
@@ -33,4 +35,4 @@
|
||||
"crowd",
|
||||
"microphone_stand"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Barbie_b3dr00m-i.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "barbie bedroom"
|
||||
"lora_triggers": "barbie bedroom",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"barbie_(franchise)",
|
||||
@@ -46,4 +48,4 @@
|
||||
"tiara",
|
||||
"ribbon"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +1,28 @@
|
||||
{
|
||||
"scene_id": "bedroom_(pink)",
|
||||
"description": "A pink bedroom with a girly theme.",
|
||||
"scene": {
|
||||
"background": "wallpaper",
|
||||
"foreground": "plush carpet",
|
||||
"furniture": ["bed", "desk", "chair", "wardrobe", "window"],
|
||||
"colors": ["pink", "white"],
|
||||
"lighting": "soft",
|
||||
"theme": "girly, cute"
|
||||
},
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Girl_b3dr00m-i.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "Girl_b3dr00m-i"
|
||||
}
|
||||
}
|
||||
"scene_id": "bedroom_(pink)",
|
||||
"description": "A pink bedroom with a girly theme.",
|
||||
"scene": {
|
||||
"background": "wallpaper",
|
||||
"foreground": "plush carpet",
|
||||
"furniture": [
|
||||
"bed",
|
||||
"desk",
|
||||
"chair",
|
||||
"wardrobe",
|
||||
"window"
|
||||
],
|
||||
"colors": [
|
||||
"pink",
|
||||
"white"
|
||||
],
|
||||
"lighting": "soft",
|
||||
"theme": "girly, cute"
|
||||
},
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Girl_b3dr00m-i.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "Girl_b3dr00m-i",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/bedroom_0f_4_succubus-i.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "bedroom 0f 4 succubus"
|
||||
"lora_triggers": "bedroom 0f 4 succubus",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"indoors",
|
||||
@@ -40,4 +42,4 @@
|
||||
"skull",
|
||||
"incense"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Before_the_Chalkboard_IL.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "standing beside desk, chalkboard, indoors"
|
||||
"lora_triggers": "standing beside desk, chalkboard, indoors",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"classroom",
|
||||
@@ -37,4 +39,4 @@
|
||||
"standing",
|
||||
"school_uniform"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Canopy_Bed.safetensors",
|
||||
"lora_weight": 0.8,
|
||||
"lora_triggers": "c4nopy"
|
||||
"lora_triggers": "c4nopy",
|
||||
"lora_weight_min": 0.8,
|
||||
"lora_weight_max": 0.8
|
||||
},
|
||||
"tags": [
|
||||
"indoors",
|
||||
@@ -32,4 +34,4 @@
|
||||
"soft_lighting",
|
||||
"no_humans"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Cozy_bedroom_-_Illustrious.safetensors",
|
||||
"lora_weight": 0.8,
|
||||
"lora_triggers": "cozybedroom"
|
||||
"lora_triggers": "cozybedroom",
|
||||
"lora_weight_min": 0.8,
|
||||
"lora_weight_max": 0.8
|
||||
},
|
||||
"tags": [
|
||||
"modern",
|
||||
@@ -34,4 +36,4 @@
|
||||
"bright",
|
||||
"dutch_angle"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/ForestILL.safetensors",
|
||||
"lora_weight": 0.75,
|
||||
"lora_triggers": "forest, tree, dark_background"
|
||||
"lora_triggers": "forest, tree, dark_background",
|
||||
"lora_weight_min": 0.75,
|
||||
"lora_weight_max": 0.75
|
||||
},
|
||||
"tags": [
|
||||
"forest",
|
||||
@@ -33,4 +35,4 @@
|
||||
"outdoors",
|
||||
"nature"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Girl_b3dr00m-i.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "Girl b3dr00m"
|
||||
"lora_triggers": "Girl b3dr00m",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"indoors",
|
||||
@@ -36,4 +38,4 @@
|
||||
"string_lights",
|
||||
"pastel_colors"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/glass_block_wall_il_2_d16.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "glass block wall"
|
||||
"lora_triggers": "glass block wall",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"glass_wall",
|
||||
@@ -27,4 +29,4 @@
|
||||
"blurry_background",
|
||||
"wall"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/homeless_ossan_V2.safetensors",
|
||||
"lora_weight": 0.8,
|
||||
"lora_triggers": "homeless_ossan"
|
||||
"lora_triggers": "homeless_ossan",
|
||||
"lora_weight_min": 0.8,
|
||||
"lora_weight_max": 0.8
|
||||
},
|
||||
"tags": [
|
||||
"dutch_angle",
|
||||
@@ -29,4 +31,4 @@
|
||||
"scenery",
|
||||
"no_humans"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/IL_Medieval_brothel_Bedroom_r1.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "medieval_brothel, bedroom, canopy bed, wooden floor, wooden wall, candle, night, red curtains, carpet, window"
|
||||
"lora_triggers": "medieval_brothel, bedroom, canopy bed, wooden floor, wooden wall, candle, night, red curtains, carpet, window",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"medieval",
|
||||
@@ -39,4 +41,4 @@
|
||||
"dim_light",
|
||||
"red_theme"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/IL_Vintage_Tavern.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "vinbmf, scenery, vintage, medieval, wooden tables, tavern, counter, red lamps, dark, red tapestry, small chandelier"
|
||||
"lora_triggers": "vinbmf, scenery, vintage, medieval, wooden tables, tavern, counter, red lamps, dark, red tapestry, small chandelier",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"anime",
|
||||
@@ -40,4 +42,4 @@
|
||||
"indoors",
|
||||
"scenery"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Laboratory_-_IL.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "l4b"
|
||||
"lora_triggers": "l4b",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"indoors",
|
||||
@@ -47,4 +49,4 @@
|
||||
"science_fiction",
|
||||
"stasis_tank"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/M4DSCIENC3-IL.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "M4DSCIENC3, laboratory, dungeon"
|
||||
"lora_triggers": "M4DSCIENC3, laboratory, dungeon",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"laboratory",
|
||||
@@ -50,4 +52,4 @@
|
||||
"no_humans",
|
||||
"scenery"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/midis_LargeRoom_V0.5[IL].safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "largeroom"
|
||||
"lora_triggers": "largeroom",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"masterpiece",
|
||||
@@ -32,4 +34,4 @@
|
||||
"wide_shot",
|
||||
"very_aesthetic"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Mushroom.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "mshr00m"
|
||||
"lora_triggers": "mshr00m",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"forest",
|
||||
@@ -30,4 +32,4 @@
|
||||
"fantasy",
|
||||
"night"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/mysterious_4lch3my_sh0p-i.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "mysterious 4lch3my sh0p"
|
||||
"lora_triggers": "mysterious 4lch3my sh0p",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"mysterious alchemy shop",
|
||||
@@ -32,4 +34,4 @@
|
||||
"background",
|
||||
"magic shop"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/nightclub.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "nightclub"
|
||||
"lora_triggers": "nightclub",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"nightclub",
|
||||
@@ -31,4 +33,4 @@
|
||||
"bar_counter",
|
||||
"disco_ball"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/privacy_screen_anyillustriousXLFor_v11_came_1420_v1.0.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "privacy_curtains, hospital_curtains"
|
||||
"lora_triggers": "privacy_curtains, hospital_curtains",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"hospital",
|
||||
@@ -34,4 +36,4 @@
|
||||
"white_wall",
|
||||
"partition"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/RetroKitchenILL.safetensors",
|
||||
"lora_weight": 1.0,
|
||||
"lora_triggers": "retro kitchens"
|
||||
"lora_triggers": "retro kitchens",
|
||||
"lora_weight_min": 1.0,
|
||||
"lora_weight_max": 1.0
|
||||
},
|
||||
"tags": [
|
||||
"kitchen",
|
||||
@@ -41,4 +43,4 @@
|
||||
"window",
|
||||
"sunlight"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/ScenicILL.safetensors",
|
||||
"lora_weight": 0.8,
|
||||
"lora_triggers": "scenery"
|
||||
"lora_triggers": "scenery",
|
||||
"lora_weight_min": 0.8,
|
||||
"lora_weight_max": 0.8
|
||||
},
|
||||
"tags": [
|
||||
"scenery",
|
||||
@@ -39,4 +41,4 @@
|
||||
"masterpiece",
|
||||
"best_quality"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/space_backround_illustrious.safetensors",
|
||||
"lora_weight": 0.8,
|
||||
"lora_triggers": "space_backround"
|
||||
"lora_triggers": "space_backround",
|
||||
"lora_weight_min": 0.8,
|
||||
"lora_weight_max": 0.8
|
||||
},
|
||||
"tags": [
|
||||
"space",
|
||||
@@ -29,4 +31,4 @@
|
||||
"science_fiction",
|
||||
"milky_way"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/VIP.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "v1p"
|
||||
"lora_triggers": "v1p",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"nightclub",
|
||||
@@ -37,4 +39,4 @@
|
||||
"neon_lights",
|
||||
"dim_lighting"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
"lora": {
|
||||
"lora_name": "Illustrious/Backgrounds/Wedding_Venue.safetensors",
|
||||
"lora_weight": 0.7,
|
||||
"lora_triggers": "w3dd1ng"
|
||||
"lora_triggers": "w3dd1ng",
|
||||
"lora_weight_min": 0.7,
|
||||
"lora_weight_max": 0.7
|
||||
},
|
||||
"tags": [
|
||||
"w3dd1ng",
|
||||
@@ -40,4 +42,4 @@
|
||||
"nature",
|
||||
"day"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user