Spaces:
Running
Running
Nattapong Tapachoom
commited on
Commit
·
c7cb155
1
Parent(s):
c2c2eb4
CC
Browse files
app.py
CHANGED
@@ -145,17 +145,6 @@ with gr.Blocks(
|
|
145 |
<h3 style='color:#4a4a7d; margin-bottom:10px;'>� ตัวอย่างข้อความ</h3>
|
146 |
</div>
|
147 |
""")
|
148 |
-
# ต้องสร้างตัวอย่างหลัง text_input ถูกนิยามแล้ว
|
149 |
-
examples = gr.Examples(
|
150 |
-
examples=[
|
151 |
-
["วันนี้อากาศดีมาก ฉันรู้สึกมีความสุขมาก"],
|
152 |
-
["ฉันไม่ชอบอาหารนี้ รสชาติแปลกมาก"],
|
153 |
-
["วันนี้เป็นยังไง\nเรียนหนังสือกันไหม"],
|
154 |
-
["บริการดีมาก พนักงานใจดี\nแต่ของมีราคาแพงไปหน่อย\nโดยรวมแล้วพอใจ"]
|
155 |
-
],
|
156 |
-
inputs=[text_input],
|
157 |
-
label="คลิกเพื่อใส่ตัวอย่างในกล่องข้อความ"
|
158 |
-
)
|
159 |
with gr.Column():
|
160 |
gr.Markdown("""
|
161 |
<div class='main-card'>
|
@@ -177,6 +166,17 @@ with gr.Blocks(
|
|
177 |
lines=15,
|
178 |
show_copy_button=True
|
179 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
gr.Markdown("""
|
181 |
<div class='main-card' style='margin-top:24px; background: #f8f9fa;'>
|
182 |
<div style="display: flex; justify-content: space-around; padding: 10px 0;">
|
|
|
145 |
<h3 style='color:#4a4a7d; margin-bottom:10px;'>� ตัวอย่างข้อความ</h3>
|
146 |
</div>
|
147 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
with gr.Column():
|
149 |
gr.Markdown("""
|
150 |
<div class='main-card'>
|
|
|
166 |
lines=15,
|
167 |
show_copy_button=True
|
168 |
)
|
169 |
+
# ต้องสร้างตัวอย่างหลัง text_input ถูกนิยามแล้ว
|
170 |
+
examples = gr.Examples(
|
171 |
+
examples=[
|
172 |
+
["วันนี้อากาศดีมาก ฉันรู้สึกมีความสุขมาก"],
|
173 |
+
["ฉันไม่ชอบอาหารนี้ รสชาติแปลกมาก"],
|
174 |
+
["วันนี้เป็นยังไง\nเรียนหนังสือกันไหม"],
|
175 |
+
["บริการดีมาก พนักงานใจดี\nแต่ของมีราคาแพงไปหน่อย\nโดยรวมแล้วพอใจ"]
|
176 |
+
],
|
177 |
+
inputs=[text_input],
|
178 |
+
label="คลิกเพื่อใส่ตัวอย่างในกล่องข้อความ"
|
179 |
+
)
|
180 |
gr.Markdown("""
|
181 |
<div class='main-card' style='margin-top:24px; background: #f8f9fa;'>
|
182 |
<div style="display: flex; justify-content: space-around; padding: 10px 0;">
|