Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,37 +158,37 @@ function copyPromptText() {
|
|
| 158 |
"""
|
| 159 |
|
| 160 |
with gr.Blocks(css=css_code) as demo:
|
| 161 |
-
gr.Markdown("<h1 id='title'>Monster Lab
|
| 162 |
gr.Markdown("""
|
| 163 |
<div class="game-desc">
|
| 164 |
<p>หนูน้อยจ๊ะ เลือกได้ว่าจะใช้ค่าใน <strong>Dropdown</strong> หรือจะ <strong>พิมพ์เอง</strong></p>
|
| 165 |
<p>เมื่อกด <strong>"สร้างมอนสเตอร์!"</strong> แล้วจะได้ <i>รายละเอียด (ภาษาไทย)</i> และ <i>Prompt ภาษาอังกฤษ</i></p>
|
| 166 |
<p>ปุ่ม <strong>"Copy Prompt"</strong> ด้านล่าง จะคัดลอกข้อความในช่อง Prompt เพื่อให้ไปวางใน AI อื่นได้ง่าย</p>
|
| 167 |
-
<p><strong>สนใจเรียนรู้เพิ่มเติมกับ ZenityX
|
| 168 |
</div>
|
| 169 |
""")
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
with gr.Column():
|
| 173 |
-
body_dd = gr.Dropdown(body_shapes_th, label="รูปร่าง
|
| 174 |
-
body_tb = gr.Textbox(label="หรือพิมพ์เอง
|
| 175 |
|
| 176 |
-
head_dd = gr.Dropdown(heads_th, label="หัว/ใบหน้า
|
| 177 |
-
head_tb = gr.Textbox(label="หรือพิมพ์เอง
|
| 178 |
|
| 179 |
with gr.Column():
|
| 180 |
-
arms_dd = gr.Dropdown(arms_legs_th, label="แขนขา
|
| 181 |
-
arms_tb = gr.Textbox(label="หรือพิมพ์เอง
|
| 182 |
|
| 183 |
-
skin_dd = gr.Dropdown(skin_patterns_th, label="ผิว/ลวดลาย
|
| 184 |
-
skin_tb = gr.Textbox(label="หรือพิมพ์เอง
|
| 185 |
|
| 186 |
with gr.Column():
|
| 187 |
-
ability_dd = gr.Dropdown(abilities_th, label="พลังพิเศษ
|
| 188 |
-
ability_tb = gr.Textbox(label="หรือพิมพ์เอง
|
| 189 |
|
| 190 |
-
mood_dd = gr.Dropdown(moods_th, label="อารมณ์
|
| 191 |
-
mood_tb = gr.Textbox(label="หรือพิมพ์เอง
|
| 192 |
|
| 193 |
create_btn = gr.Button("สร้างมอนสเตอร์!", elem_classes="monster-btn")
|
| 194 |
|
|
|
|
| 158 |
"""
|
| 159 |
|
| 160 |
with gr.Blocks(css=css_code) as demo:
|
| 161 |
+
gr.Markdown("<h1 id='title'>ZenityX Monster Lab</h1>")
|
| 162 |
gr.Markdown("""
|
| 163 |
<div class="game-desc">
|
| 164 |
<p>หนูน้อยจ๊ะ เลือกได้ว่าจะใช้ค่าใน <strong>Dropdown</strong> หรือจะ <strong>พิมพ์เอง</strong></p>
|
| 165 |
<p>เมื่อกด <strong>"สร้างมอนสเตอร์!"</strong> แล้วจะได้ <i>รายละเอียด (ภาษาไทย)</i> และ <i>Prompt ภาษาอังกฤษ</i></p>
|
| 166 |
<p>ปุ่ม <strong>"Copy Prompt"</strong> ด้านล่าง จะคัดลอกข้อความในช่อง Prompt เพื่อให้ไปวางใน AI อื่นได้ง่าย</p>
|
| 167 |
+
<p><strong>สนใจเรียนรู้เพิ่มเติมกับ ZenityX <a href="https://www.facebook.com/zenityXAiStudio" target="_blank">คลิกเลย!</a></strong></p>
|
| 168 |
</div>
|
| 169 |
""")
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
with gr.Column():
|
| 173 |
+
body_dd = gr.Dropdown(body_shapes_th, label="รูปร่าง", value=body_shapes_th[0])
|
| 174 |
+
body_tb = gr.Textbox(label="หรือพิมพ์เอง", placeholder="ตัวโคลนยืดหยุ่น...")
|
| 175 |
|
| 176 |
+
head_dd = gr.Dropdown(heads_th, label="หัว/ใบหน้า", value=heads_th[0])
|
| 177 |
+
head_tb = gr.Textbox(label="หรือพิมพ์เอง", placeholder="หัวปลาหมึกสุดแปลก...")
|
| 178 |
|
| 179 |
with gr.Column():
|
| 180 |
+
arms_dd = gr.Dropdown(arms_legs_th, label="แขนขา", value=arms_legs_th[0])
|
| 181 |
+
arms_tb = gr.Textbox(label="หรือพิมพ์เอง", placeholder="แขนออกรากไม้...")
|
| 182 |
|
| 183 |
+
skin_dd = gr.Dropdown(skin_patterns_th, label="ผิว/ลวดลาย", value=skin_patterns_th[0])
|
| 184 |
+
skin_tb = gr.Textbox(label="หรือพิมพ์เอง", placeholder="ลายทางสีทอง...")
|
| 185 |
|
| 186 |
with gr.Column():
|
| 187 |
+
ability_dd = gr.Dropdown(abilities_th, label="พลังพิเศษ", value=abilities_th[0])
|
| 188 |
+
ability_tb = gr.Textbox(label="หรือพิมพ์เอง", placeholder="สร้างภาพลวงตา...")
|
| 189 |
|
| 190 |
+
mood_dd = gr.Dropdown(moods_th, label="อารมณ์", value=moods_th[0])
|
| 191 |
+
mood_tb = gr.Textbox(label="หรือพิมพ์เอง", placeholder="ขี้เล่นเป็นพิเศษ...")
|
| 192 |
|
| 193 |
create_btn = gr.Button("สร้างมอนสเตอร์!", elem_classes="monster-btn")
|
| 194 |
|