LeafCat79 commited on
Commit
16301e6
·
verified ·
1 Parent(s): 32aa7c0

Start roles and theme blank

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -81,6 +81,9 @@ STARTER_HTML = """<!DOCTYPE html>
81
  DEFAULT_ROLES = """player: top-down pixel-art adventurer hero, transparent background, bright readable silhouette
82
  background: enchanted forest clearing game background, top-down view, soft moonlight, detailed but not too busy"""
83
 
 
 
 
84
 
85
  @dataclass
86
  class AssetSpec:
@@ -1387,14 +1390,14 @@ with gr.Blocks(title="Image Generator for HTML Games") as demo:
1387
  with gr.Column(scale=1):
1388
  roles = gr.Textbox(
1389
  label="Image roles to generate",
1390
- value=DEFAULT_ROLES,
1391
  lines=8,
 
1392
  info="One per line: role: image description. Example: player: blue robot hero",
1393
  )
1394
  style = gr.Textbox(
1395
  label="Shared visual style",
1396
- value="cohesive 2D pixel-art game style, transparent subject sprites where possible",
1397
  lines=2,
 
1398
  )
1399
  generate_btn = gr.Button("Generate Images + Embed Game", variant="primary")
1400
  status = gr.Markdown("Ready.")
 
81
  DEFAULT_ROLES = """player: top-down pixel-art adventurer hero, transparent background, bright readable silhouette
82
  background: enchanted forest clearing game background, top-down view, soft moonlight, detailed but not too busy"""
83
 
84
+ ROLE_PLACEHOLDER = """player: blue robot hero sprite
85
+ background: empty space station floor map"""
86
+
87
 
88
  @dataclass
89
  class AssetSpec:
 
1390
  with gr.Column(scale=1):
1391
  roles = gr.Textbox(
1392
  label="Image roles to generate",
 
1393
  lines=8,
1394
+ placeholder=ROLE_PLACEHOLDER,
1395
  info="One per line: role: image description. Example: player: blue robot hero",
1396
  )
1397
  style = gr.Textbox(
1398
  label="Shared visual style",
 
1399
  lines=2,
1400
+ placeholder="Optional: describe the art style/theme, or leave blank.",
1401
  )
1402
  generate_btn = gr.Button("Generate Images + Embed Game", variant="primary")
1403
  status = gr.Markdown("Ready.")