Spaces:
Running on Zero
Running on Zero
Commit ·
aee81f4
1
Parent(s): d726390
Prompt Builder: มุมกล้อง/ช็อต -> multiselect dropdown of reliable shot/angle tags (full body/wide trigger canvas bump) (#36)
Browse files- Prompt Builder: มุมกล้อง/ช็อต -> multiselect dropdown of reliable shot/angle tags (full body/wide trigger canvas bump) (178b72fb1fad5992e538bfe2aab5917e2ae12546)
Co-authored-by: pormungtailaw <pormungtai@users.noreply.huggingface.co>
app.py
CHANGED
|
@@ -265,7 +265,21 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft(primary_hue="blue"),
|
|
| 265 |
with gr.Row():
|
| 266 |
b_scene = gr.Textbox(label="สถานที่ / ฉาก", placeholder="เช่น คาเฟ่, ริมทะเล, ในสวน")
|
| 267 |
b_light = gr.Textbox(label="แสง", placeholder="เช่น แสงเช้านุ่มๆ, แสงสตูดิโอ")
|
| 268 |
-
b_shot = gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
build_btn = gr.Button("✨ สร้าง prompt → ใส่ในช่องด้านบน", variant="secondary")
|
| 270 |
|
| 271 |
# State: ordered list of model ids (matches gallery order) + current selection.
|
|
|
|
| 265 |
with gr.Row():
|
| 266 |
b_scene = gr.Textbox(label="สถานที่ / ฉาก", placeholder="เช่น คาเฟ่, ริมทะเล, ในสวน")
|
| 267 |
b_light = gr.Textbox(label="แสง", placeholder="เช่น แสงเช้านุ่มๆ, แสงสตูดิโอ")
|
| 268 |
+
b_shot = gr.Dropdown(
|
| 269 |
+
label="มุมกล้อง / ช็อต (เลือกได้หลายอัน · พิมพ์เองได้)",
|
| 270 |
+
choices=[
|
| 271 |
+
("โคลสอัพใบหน้า / close-up", "close-up portrait, face focus, headshot"),
|
| 272 |
+
("ครึ่งตัวบน / upper body", "upper body shot, bust"),
|
| 273 |
+
("ครึ่งตัว เอวขึ้นไป / half body", "half body shot, waist up"),
|
| 274 |
+
("เต็มตัว หัวถึงเท้า / full body", "full body shot, head to toe, full body visible"),
|
| 275 |
+
("ระยะไกล เห็นรอบตัว / wide shot", "wide shot, full body, distant, environmental"),
|
| 276 |
+
("มุมเงย / low angle", "from below, low angle shot"),
|
| 277 |
+
("มุมก้ม / high angle", "from above, high angle shot"),
|
| 278 |
+
("มุมข้าง โปรไฟล์ / side", "from side, profile view"),
|
| 279 |
+
("มุมหลัง / from behind", "from behind, back view"),
|
| 280 |
+
("เซลฟี่ / selfie", "selfie, pov, arm extended"),
|
| 281 |
+
],
|
| 282 |
+
value=None, multiselect=True, allow_custom_value=True)
|
| 283 |
build_btn = gr.Button("✨ สร้าง prompt → ใส่ในช่องด้านบน", variant="secondary")
|
| 284 |
|
| 285 |
# State: ordered list of model ids (matches gallery order) + current selection.
|