Yuukinarak commited on
Commit
a1d4fda
·
verified ·
1 Parent(s): 03628aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -136,4 +136,15 @@ with gr.Blocks(css=css) as demo:
136
  outputs = [result, seed]
137
  )
138
 
 
 
 
 
 
 
 
 
 
 
 
139
  demo.launch()
 
136
  outputs = [result, seed]
137
  )
138
 
139
+ example_texts = [
140
+ "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
141
+ "An astronaut riding a green horse",
142
+ "A delicious ceviche cheesecake slice",
143
+ ]
144
+
145
+ # สร้างปุ่มสำหรับแต่ละข้อความ
146
+ for text in example_texts:
147
+ button = gr.Button(text)
148
+ button.click(fn=lambda x=text: prompt.update(value=x))
149
+
150
  demo.launch()