Spaces:
Runtime error
Runtime error
Commit
·
c54f6e2
1
Parent(s):
03aa41c
D&D Map
Browse files
app.py
CHANGED
@@ -16,11 +16,6 @@ MAX_IMAGE_SIZE = 2048
|
|
16 |
|
17 |
# Style list for prompt customization
|
18 |
style_list = [
|
19 |
-
{
|
20 |
-
"name": "D&D Map",
|
21 |
-
"prompt": "dungeons & dragons map artwork of {prompt}. In the styel of Dungeon Tiles, Intricate fantasy map with a precise 1-inch visible grid layout adhering to D&D rules (5 feet per square), ancient cartography style, clearly labeled locations, key landmarks, navigational markers, topographic textures, detailed compass rose, parchment-like texture, vibrant rich colors, immersive design, optimized for tabletop gameplay and tactical use.",
|
22 |
-
"negative_prompt": "modern maps, bland, plain, low detail, inaccurate grids (non-5-foot alignment), futuristic, chaotic, unlabeled locations, minimalist, non-immersive, disproportionate landmarks."
|
23 |
-
},
|
24 |
{"name": "D&D Art", "prompt": "dungeons & dragons style artwork {prompt}. d&d style, key visual, vibrant, studio anime, highly detailed", "negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast"},
|
25 |
{"name": "Dark Fantasy", "prompt": "dark and moody dungeons & dragons artwork of {prompt}. gothic ruins, shadowy figures, haunting atmospheres, grim villains, muted colors, intricate textures, sinister undertones", "negative_prompt": "bright, cheerful, cartoonish, lighthearted, futuristic, deformed"},
|
26 |
{"name": "Epic Battle", "prompt": "dynamic dungeons & dragons artwork of {prompt}. epic battle scene, legendary heroes, fierce monsters, intense action, dramatic lighting, high-detail environment, magical effects, vibrant colors", "negative_prompt": "peaceful, mundane, low energy, modern, sci-fi, simplistic, cartoonish, low contrast"},
|
@@ -58,6 +53,12 @@ style_list = [
|
|
58 |
"negative_prompt": "cold, empty, futuristic, lifeless, overly simplistic, boring"
|
59 |
},
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
{
|
62 |
"name": "D&D Quest Art",
|
63 |
"prompt": "dungeons & dragons quest artwork of {prompt}. heroic adventurers, perilous journeys, hidden treasures, legendary quests, immersive fantasy landscapes, intricate details, atmospheric lighting, grand scale, narrative-driven composition",
|
@@ -195,7 +196,7 @@ style_list = [
|
|
195 |
|
196 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
197 |
STYLE_NAMES = list(styles.keys())
|
198 |
-
DEFAULT_STYLE_NAME = "D&D
|
199 |
|
200 |
# Function to apply selected style
|
201 |
def apply_style(style_name: str, positive: str, negative: str = ""):
|
|
|
16 |
|
17 |
# Style list for prompt customization
|
18 |
style_list = [
|
|
|
|
|
|
|
|
|
|
|
19 |
{"name": "D&D Art", "prompt": "dungeons & dragons style artwork {prompt}. d&d style, key visual, vibrant, studio anime, highly detailed", "negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast"},
|
20 |
{"name": "Dark Fantasy", "prompt": "dark and moody dungeons & dragons artwork of {prompt}. gothic ruins, shadowy figures, haunting atmospheres, grim villains, muted colors, intricate textures, sinister undertones", "negative_prompt": "bright, cheerful, cartoonish, lighthearted, futuristic, deformed"},
|
21 |
{"name": "Epic Battle", "prompt": "dynamic dungeons & dragons artwork of {prompt}. epic battle scene, legendary heroes, fierce monsters, intense action, dramatic lighting, high-detail environment, magical effects, vibrant colors", "negative_prompt": "peaceful, mundane, low energy, modern, sci-fi, simplistic, cartoonish, low contrast"},
|
|
|
53 |
"negative_prompt": "cold, empty, futuristic, lifeless, overly simplistic, boring"
|
54 |
},
|
55 |
|
56 |
+
{
|
57 |
+
"name": "D&D Map",
|
58 |
+
"prompt": "dungeons & dragons map artwork of {prompt}. In the styel of Dungeon Tiles, Intricate fantasy map with a precise 1-inch visible grid layout adhering to D&D rules (5 feet per square), ancient cartography style, clearly labeled locations, key landmarks, navigational markers, topographic textures, detailed compass rose, parchment-like texture, vibrant rich colors, immersive design, optimized for tabletop gameplay and tactical use.",
|
59 |
+
"negative_prompt": "modern maps, bland, plain, low detail, inaccurate grids (non-5-foot alignment), futuristic, chaotic, unlabeled locations, minimalist, non-immersive, disproportionate landmarks."
|
60 |
+
},
|
61 |
+
|
62 |
{
|
63 |
"name": "D&D Quest Art",
|
64 |
"prompt": "dungeons & dragons quest artwork of {prompt}. heroic adventurers, perilous journeys, hidden treasures, legendary quests, immersive fantasy landscapes, intricate details, atmospheric lighting, grand scale, narrative-driven composition",
|
|
|
196 |
|
197 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
198 |
STYLE_NAMES = list(styles.keys())
|
199 |
+
DEFAULT_STYLE_NAME = "D&D Map"
|
200 |
|
201 |
# Function to apply selected style
|
202 |
def apply_style(style_name: str, positive: str, negative: str = ""):
|