pormungtai commited on
Commit
0abc34d
·
verified ·
1 Parent(s): aee81f4

Prompt Builder: ท่าโพส -> multiselect dropdown of SD1.5-reliable pose tags (stand/sit/lie/action/hands)

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -260,7 +260,28 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft(primary_hue="blue"),
260
  b_face = gr.Textbox(label="โครงหน้า", placeholder="เช่น หน้าเรียว, หน้ารูปไข่, หน้ากลม, คางแหลม")
261
  with gr.Row():
262
  b_outfit = gr.Textbox(label="ชุด / เสื้อผ้า", placeholder="เช่น เดรสสีขาว, ชุดนักเรียน")
263
- b_pose = gr.Textbox(label="ท่าโพส", placeholder="เช่น ยืนมือเท้าเอว, นั่ง")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  b_expr = gr.Textbox(label="สีหน้า / อารมณ์", placeholder="เช่น ยิ้มอ่อนๆ")
265
  with gr.Row():
266
  b_scene = gr.Textbox(label="สถานที่ / ฉาก", placeholder="เช่น คาเฟ่, ริมทะเล, ในสวน")
 
260
  b_face = gr.Textbox(label="โครงหน้า", placeholder="เช่น หน้าเรียว, หน้ารูปไข่, หน้ากลม, คางแหลม")
261
  with gr.Row():
262
  b_outfit = gr.Textbox(label="ชุด / เสื้อผ้า", placeholder="เช่น เดรสสีขาว, ชุดนักเรียน")
263
+ b_pose = gr.Dropdown(
264
+ label="ท่าโพส (เลือกผสมได้ · พิมพ์เองได้)",
265
+ choices=[
266
+ ("ยืนตรง / standing", "standing"),
267
+ ("ยืนมือเท้าเอว / hands on hips", "standing, hands on hips"),
268
+ ("ยืนเอียงสะโพก / contrapposto", "standing, contrapposto pose"),
269
+ ("ยืนพิงกำแพง / leaning on wall", "leaning against wall"),
270
+ ("นั่งเก้าอี้ / sitting (chair)", "sitting on chair"),
271
+ ("นั่งพื้น / sitting (floor)", "sitting on floor"),
272
+ ("นั่งไขว่ห้าง / crossed legs", "sitting, crossed legs"),
273
+ ("นั่งชันเข่า / knees up", "sitting, knees up, hugging knees"),
274
+ ("คุกเข่า / kneeling", "kneeling"),
275
+ ("นอนหงาย / lying on back", "lying on back"),
276
+ ("นอนคว่ำ / on stomach", "lying on stomach"),
277
+ ("นอนตะแคง / on side", "lying on side"),
278
+ ("เดิน / walking", "walking"),
279
+ ("วิ่ง / running", "running"),
280
+ ("มือรวบผม / hand in hair", "hand in own hair, arm up"),
281
+ ("กอดอก / arms crossed", "crossed arms"),
282
+ ("โบกมือ / waving", "waving hand"),
283
+ ],
284
+ value=None, multiselect=True, allow_custom_value=True)
285
  b_expr = gr.Textbox(label="สีหน้า / อารมณ์", placeholder="เช่น ยิ้มอ่อนๆ")
286
  with gr.Row():
287
  b_scene = gr.Textbox(label="สถานที่ / ฉาก", placeholder="เช่น คาเฟ่, ริมทะเล, ในสวน")