Update app.py
Browse files
app.py
CHANGED
|
@@ -261,14 +261,12 @@ STYLE_PACKS = {
|
|
| 261 |
"art, messy art"
|
| 262 |
),
|
| 263 |
},
|
| 264 |
-
"
|
| 265 |
"prefix": (
|
| 266 |
-
"
|
| 267 |
-
"wet hair sticking, neon puddles"
|
| 268 |
),
|
| 269 |
"suffix": (
|
| 270 |
-
"no bra
|
| 271 |
-
"soaked see-through, alley wall pin"
|
| 272 |
),
|
| 273 |
},
|
| 274 |
"Soft Domme": {
|
|
@@ -306,8 +304,8 @@ STYLE_PACKS = {
|
|
| 306 |
# Filth dial extras (0 = soft tease, 1 = pack heat only, 2 = max explicit). Body lock untouched.
|
| 307 |
FILTH_LEVELS = {
|
| 308 |
0: {
|
| 309 |
-
"prefix": "
|
| 310 |
-
"suffix": "
|
| 311 |
},
|
| 312 |
1: {
|
| 313 |
"prefix": "",
|
|
@@ -569,16 +567,14 @@ def _clamp_blend(val, fallback=0.55):
|
|
| 569 |
|
| 570 |
|
| 571 |
def resolve_chef_chain(cfg):
|
| 572 |
-
"""
|
| 573 |
-
Returns (chefs, blends, lora) where chefs[0]=A (txt2img), rest are img2img.
|
| 574 |
-
blends aligns with chefs[1:] (blend for B/C/D).
|
| 575 |
"""
|
| 576 |
a = _norm_chef(cfg.get("chef_a"))
|
| 577 |
b = _norm_chef(cfg.get("chef_b"))
|
| 578 |
c = _norm_chef(cfg.get("chef_c"))
|
| 579 |
d = _norm_chef(cfg.get("chef_d"))
|
| 580 |
if not a:
|
| 581 |
-
raise ValueError("
|
| 582 |
chefs = [a]
|
| 583 |
blends = []
|
| 584 |
if b:
|
|
@@ -624,9 +620,7 @@ def run_chef_pipeline(
|
|
| 624 |
height,
|
| 625 |
device,
|
| 626 |
):
|
| 627 |
-
"""
|
| 628 |
-
LoRA applies on the last chef that runs.
|
| 629 |
-
Returns list of (pil_image, seed, chain_str, label).
|
| 630 |
"""
|
| 631 |
chefs, blends, lora = resolve_chef_chain(cfg)
|
| 632 |
last_idx = len(chefs) - 1
|
|
@@ -885,10 +879,7 @@ def create_ui():
|
|
| 885 |
with gr.Blocks(title="JustinD/1 · 21+ Fiction Lab") as demo:
|
| 886 |
user_id = gr.Textbox(visible=False)
|
| 887 |
gr.Markdown(
|
| 888 |
-
"""# JustinD/1
|
| 889 |
-
### Adult East / Southeast Asian fiction booth · Multi-select stacks · optional quad chefs · ZeroGPU
|
| 890 |
-
|
| 891 |
-
"""
|
| 892 |
)
|
| 893 |
with gr.Row():
|
| 894 |
with gr.Column(scale=5):
|
|
@@ -900,7 +891,7 @@ def create_ui():
|
|
| 900 |
styles = gr.CheckboxGroup(
|
| 901 |
label="Style packs (stackable · Testing Tits on by default)",
|
| 902 |
choices=list(STYLE_PACKS.keys()),
|
| 903 |
-
value=["Testing Tits"],
|
| 904 |
)
|
| 905 |
prompt = gr.Textbox(
|
| 906 |
label="Prompt (scene + vibe)",
|
|
|
|
| 261 |
"art, messy art"
|
| 262 |
),
|
| 263 |
},
|
| 264 |
+
"3": {
|
| 265 |
"prefix": (
|
| 266 |
+
"string, pantys"
|
|
|
|
| 267 |
),
|
| 268 |
"suffix": (
|
| 269 |
+
"no bra"
|
|
|
|
| 270 |
),
|
| 271 |
},
|
| 272 |
"Soft Domme": {
|
|
|
|
| 304 |
# Filth dial extras (0 = soft tease, 1 = pack heat only, 2 = max explicit). Body lock untouched.
|
| 305 |
FILTH_LEVELS = {
|
| 306 |
0: {
|
| 307 |
+
"prefix": "sexy tease, nude, lot of cleavage, erotic looks",
|
| 308 |
+
"suffix": "",
|
| 309 |
},
|
| 310 |
1: {
|
| 311 |
"prefix": "",
|
|
|
|
| 567 |
|
| 568 |
|
| 569 |
def resolve_chef_chain(cfg):
|
| 570 |
+
"""
|
|
|
|
|
|
|
| 571 |
"""
|
| 572 |
a = _norm_chef(cfg.get("chef_a"))
|
| 573 |
b = _norm_chef(cfg.get("chef_b"))
|
| 574 |
c = _norm_chef(cfg.get("chef_c"))
|
| 575 |
d = _norm_chef(cfg.get("chef_d"))
|
| 576 |
if not a:
|
| 577 |
+
raise ValueError("Make a required")
|
| 578 |
chefs = [a]
|
| 579 |
blends = []
|
| 580 |
if b:
|
|
|
|
| 620 |
height,
|
| 621 |
device,
|
| 622 |
):
|
| 623 |
+
"""
|
|
|
|
|
|
|
| 624 |
"""
|
| 625 |
chefs, blends, lora = resolve_chef_chain(cfg)
|
| 626 |
last_idx = len(chefs) - 1
|
|
|
|
| 879 |
with gr.Blocks(title="JustinD/1 · 21+ Fiction Lab") as demo:
|
| 880 |
user_id = gr.Textbox(visible=False)
|
| 881 |
gr.Markdown(
|
| 882 |
+
"""# JustinD/1"""
|
|
|
|
|
|
|
|
|
|
| 883 |
)
|
| 884 |
with gr.Row():
|
| 885 |
with gr.Column(scale=5):
|
|
|
|
| 891 |
styles = gr.CheckboxGroup(
|
| 892 |
label="Style packs (stackable · Testing Tits on by default)",
|
| 893 |
choices=list(STYLE_PACKS.keys()),
|
| 894 |
+
value=["Testing Tits, 1"],
|
| 895 |
)
|
| 896 |
prompt = gr.Textbox(
|
| 897 |
label="Prompt (scene + vibe)",
|