Update app.py
Browse files
app.py
CHANGED
@@ -132,9 +132,7 @@ def infer(prompt, seed, randomize_seed, width, height, guidance_scale, num_infer
|
|
132 |
|
133 |
|
134 |
examples = [
|
135 |
-
|
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 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
run_button = gr.Button("Run", scale=1)
|
176 |
-
|
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
|