baconnier commited on
Commit
bb2709f
·
verified ·
1 Parent(s): 3ba8788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -132,9 +132,7 @@ def infer(prompt, seed, randomize_seed, width, height, guidance_scale, num_infer
132
 
133
 
134
  examples = [
135
- "这是一幅充满皮克斯风格的动画渲染图像,展现了一只拟人化的粘土风格小蛇。这条快乐的小蛇身着魔术师装扮,占据了画面下方三分之一的位置,显得俏皮而生动。它的头上戴着一顶黑色羊毛材质的复古礼帽,身上穿着一件设计独特的红色棉袄,白色的毛袖增添了一抹温暖的对比。小蛇的鳞片上精心绘制了金色梅花花纹,显得既华丽又不失可爱。它的腹部和脸庞呈现洁白,与红色的身体形成鲜明对比。 这条蜿蜒的小蛇拥有可爱的塑胶手办质感,仿佛随时会从画面中跃然而出。背景是一片鲜艳的红色,地面上散布着宝箱、金蛋和红色灯笼等装饰物,营造出浓厚的节日气氛。画面的上半部分用金色连体字书写着 “Happy New Year”,庆祝新年的到来,同时也暗示了蛇年的到来,为整幅画面增添了一份节日的喜悦和祥瑞。" ,
136
- "在这幅如梦似幻的画作中,一辆由云朵构成的毛绒汽车轻盈地漂浮在蔚蓝的高空之中。这辆汽车设计独特,车身完全由洁白、蓬松的云朵编织而成,每一处都散发着柔软而毛茸茸的质感。从车顶到轮胎,再到它的圆润车灯,无一不是由细腻的云丝构成,仿佛随时都可能随风轻轻摆动。车窗也是由透明的云物质构成,同样覆盖着一层细软的绒毛,让人不禁想要触摸。 这辆神奇的云朵汽车仿佛是魔法世界中的交通工具,它悬浮在夕阳映照的绚丽天空之中,周围是五彩斑斓的晚霞和悠然飘浮的云彩。夕阳的余晖洒在云朵车上,为其柔软的轮廓镀上了一层金色的光辉,使得整个场景既温馨又神秘,引人入胜。",
137
- "A vintage red convertible with gleaming chrome finishes sits attractively under the golden hues of a setting sun, parked on a deserted cobblestone street in a charming old town. The car's polished body reflects the surrounding quaint buildings and the few early evening stars beginning to twinkle in the gentle gradient of the twilight sky. A light breeze teases the few fallen leaves near the car's pristine white-walled tires, which rest casually by the sidewalk, hinting at the leisurely pace of life in this serene setting."
138
  ]
139
  with gr.Blocks() as demo:
140
  gr.HTML("""
@@ -166,18 +164,18 @@ with gr.Blocks() as demo:
166
  container=False,
167
  )
168
  with gr.Row():
169
- enhance = gr.Button("Enhance Prompt (Strongly Suggest)", scale=1)
170
- enhance.click(
171
- convert_prompt,
172
- inputs=[prompt],
173
- outputs=[prompt]
174
- )
175
  run_button = gr.Button("Run", scale=1)
176
- num_images = gr.Radio(
177
  choices=[1, 2, 4],
178
  label="Number of Images",
179
  value=1
180
- )
181
 
182
  result = gr.Gallery(label="Results", show_label=True, columns=2, rows=2)
183
  MAX_PIXELS = 2 ** 21
 
132
 
133
 
134
  examples = [
135
+ "A vintage red convertible with gleaming chrome finishes sits attractively under the golden hues of a setting sun, parked on a deserted cobblestone street in a charming old town. The car's polished body reflects the surrounding quaint buildings and the few early evening stars beginning to twinkle in the gentle gradient of the twilight sky. A light breeze teases the few fallen leaves near the car's pristine white-walled tires, which rest casually by the sidewalk, hinting at the leisurely pace of life in this serene setting."
 
 
136
  ]
137
  with gr.Blocks() as demo:
138
  gr.HTML("""
 
164
  container=False,
165
  )
166
  with gr.Row():
167
+ # enhance = gr.Button("Enhance Prompt (Strongly Suggest)", scale=1)
168
+ # enhance.click(
169
+ # convert_prompt,
170
+ # inputs=[prompt],
171
+ # outputs=[prompt]
172
+ # )
173
  run_button = gr.Button("Run", scale=1)
174
+ num_images = gr.Radio(
175
  choices=[1, 2, 4],
176
  label="Number of Images",
177
  value=1
178
+ )
179
 
180
  result = gr.Gallery(label="Results", show_label=True, columns=2, rows=2)
181
  MAX_PIXELS = 2 ** 21