Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,19 +74,19 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
|
|
| 74 |
error_img = Image.new("RGB", (width, height), color=(0, 0, 0))
|
| 75 |
return error_img
|
| 76 |
|
| 77 |
-
# Custom styling
|
| 78 |
css = """
|
| 79 |
-
body {background: #
|
| 80 |
#col-container {margin: 0 auto; max-width: 640px;}
|
| 81 |
-
.gr-button {background: #
|
| 82 |
-
#prompt-box textarea {font-size: 1.1rem; height: 3rem;}
|
| 83 |
"""
|
| 84 |
|
| 85 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
| 86 |
gr.Markdown(
|
| 87 |
"""
|
| 88 |
## 🖌️ Stable Diffusion XL Playground
|
| 89 |
-
Generate high
|
| 90 |
**Tip:** Write in Korean or English. Korean will be translated automatically.
|
| 91 |
"""
|
| 92 |
)
|
|
@@ -104,13 +104,14 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
| 104 |
|
| 105 |
result = gr.Image(label="", show_label=False)
|
| 106 |
|
|
|
|
| 107 |
examples = gr.Examples(
|
| 108 |
examples=[
|
| 109 |
-
["
|
| 110 |
-
["
|
| 111 |
-
["
|
| 112 |
-
["
|
| 113 |
-
["
|
| 114 |
],
|
| 115 |
inputs=[prompt],
|
| 116 |
)
|
|
|
|
| 74 |
error_img = Image.new("RGB", (width, height), color=(0, 0, 0))
|
| 75 |
return error_img
|
| 76 |
|
| 77 |
+
# Custom styling – bright pastel theme
|
| 78 |
css = """
|
| 79 |
+
body {background: #f2f1f7; color: #222; font-family: 'Noto Sans', sans-serif;}
|
| 80 |
#col-container {margin: 0 auto; max-width: 640px;}
|
| 81 |
+
.gr-button {background: #7fbdf6; color: #ffffff; border-radius: 8px;}
|
| 82 |
+
#prompt-box textarea {font-size: 1.1rem; height: 3rem; background: #ffffff; color: #222;}
|
| 83 |
"""
|
| 84 |
|
| 85 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
| 86 |
gr.Markdown(
|
| 87 |
"""
|
| 88 |
## 🖌️ Stable Diffusion XL Playground
|
| 89 |
+
Generate high‑quality illustrations with a single prompt.
|
| 90 |
**Tip:** Write in Korean or English. Korean will be translated automatically.
|
| 91 |
"""
|
| 92 |
)
|
|
|
|
| 104 |
|
| 105 |
result = gr.Image(label="", show_label=False)
|
| 106 |
|
| 107 |
+
# Adult anime‑style example prompts
|
| 108 |
examples = gr.Examples(
|
| 109 |
examples=[
|
| 110 |
+
["Seductive anime woman lounging in a dimly lit bar, adult anime style, ultra‑detail"],
|
| 111 |
+
["Moody mature anime scene of two lovers kissing under neon rain, sensual atmosphere"],
|
| 112 |
+
["Elegant vampire countess in gothic lingerie, candle‑lit boudoir, adult anime aesthetic"],
|
| 113 |
+
["Futuristic nightclub stage with a curvaceous android dancer, vibrant neon, adult anime"],
|
| 114 |
+
["Dark fantasy warrior queen in revealing armor, dramatic spotlight, adult anime style"],
|
| 115 |
],
|
| 116 |
inputs=[prompt],
|
| 117 |
)
|