Spaces:
Runtime error
Runtime error
Commit ·
9466794
1
Parent(s): beef563
Default Character
Browse files
app.py
CHANGED
|
@@ -186,33 +186,13 @@ style_list = [
|
|
| 186 |
"name": "Retro Pixel Art",
|
| 187 |
"prompt": "8-bit retro-style pixel art of {prompt}. classic video game aesthetics, vibrant and bold pixel colors, stylized backgrounds, clean and defined sprites",
|
| 188 |
"negative_prompt": "realistic textures, photorealistic, overly smooth, detailed textures"
|
| 189 |
-
},
|
| 190 |
-
{
|
| 191 |
-
"name": "Pop Art Aesthetic",
|
| 192 |
-
"prompt": "vivid pop art illustration of {prompt}. bold colors, high contrast, retro style, comic book-like details, playful and energetic compositions",
|
| 193 |
-
"negative_prompt": "realism, dull tones, blurred effects, abstract"
|
| 194 |
-
},
|
| 195 |
-
{
|
| 196 |
-
"name": "Noir Detective",
|
| 197 |
-
"prompt": "cinematic noir-style artwork of {prompt}. black and white aesthetics, shadowy figures, fog-filled streets, dramatic lighting, vintage details, atmospheric tension",
|
| 198 |
-
"negative_prompt": "colorful, futuristic, mundane, cheerful, low-detail"
|
| 199 |
-
},
|
| 200 |
-
{
|
| 201 |
-
"name": "Studio Ghibli-Inspired Fantasy",
|
| 202 |
-
"prompt": "anime-style artwork inspired by Studio Ghibli of {prompt}. magical landscapes, intricate details, vibrant colors, fantastical creatures, peaceful yet surreal atmosphere",
|
| 203 |
-
"negative_prompt": "dark and brooding, sci-fi, plain, minimalist, harsh contrasts"
|
| 204 |
-
},
|
| 205 |
-
{
|
| 206 |
-
"name": "Art Deco City",
|
| 207 |
-
"prompt": "art deco-inspired cityscape of {prompt}. geometric designs, golden accents, intricate and modern architecture, glowing lights, detailed and luxurious atmosphere",
|
| 208 |
-
"negative_prompt": "medieval settings, fantasy, low-detail, dull textures, minimalism"
|
| 209 |
},
|
| 210 |
{"name": "(No style)", "prompt": "{prompt}", "negative_prompt": ""},
|
| 211 |
]
|
| 212 |
|
| 213 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
| 214 |
STYLE_NAMES = list(styles.keys())
|
| 215 |
-
DEFAULT_STYLE_NAME = "
|
| 216 |
|
| 217 |
# Function to apply selected style
|
| 218 |
def apply_style(style_name: str, positive: str, negative: str = ""):
|
|
@@ -372,7 +352,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 372 |
# Title and Description
|
| 373 |
gr.Markdown(
|
| 374 |
"""
|
| 375 |
-
# 🛡️ ChatDnD.net
|
| 376 |
**Unleash Your Imagination!** Create heroes, maps, quests, and epic scenes to bring your campaigns to life.
|
| 377 |
Tailored for adventurers seeking inspiration or Dungeon Masters constructing their next grand story. <br>
|
| 378 |
[Visit Our Website](https://chatdnd.net) | [Support Us](https://buymeacoffee.com/watchoutformike)
|
|
|
|
| 186 |
"name": "Retro Pixel Art",
|
| 187 |
"prompt": "8-bit retro-style pixel art of {prompt}. classic video game aesthetics, vibrant and bold pixel colors, stylized backgrounds, clean and defined sprites",
|
| 188 |
"negative_prompt": "realistic textures, photorealistic, overly smooth, detailed textures"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
},
|
| 190 |
{"name": "(No style)", "prompt": "{prompt}", "negative_prompt": ""},
|
| 191 |
]
|
| 192 |
|
| 193 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
| 194 |
STYLE_NAMES = list(styles.keys())
|
| 195 |
+
DEFAULT_STYLE_NAME = "Character Portrait"
|
| 196 |
|
| 197 |
# Function to apply selected style
|
| 198 |
def apply_style(style_name: str, positive: str, negative: str = ""):
|
|
|
|
| 352 |
# Title and Description
|
| 353 |
gr.Markdown(
|
| 354 |
"""
|
| 355 |
+
# 🛡️ ChatDnD.net Character Generator ⚔️
|
| 356 |
**Unleash Your Imagination!** Create heroes, maps, quests, and epic scenes to bring your campaigns to life.
|
| 357 |
Tailored for adventurers seeking inspiration or Dungeon Masters constructing their next grand story. <br>
|
| 358 |
[Visit Our Website](https://chatdnd.net) | [Support Us](https://buymeacoffee.com/watchoutformike)
|