Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -322,34 +322,34 @@ def infer(
|
|
| 322 |
return image_with_metadata, seed
|
| 323 |
|
| 324 |
with gr.Blocks() as demo:
|
| 325 |
-
with gr.Group():
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
run_button = gr.Button("生成", scale=0, variant="primary")
|
| 335 |
result = gr.Image(label="Result", show_label=False, format="png")
|
| 336 |
with gr.Row():
|
| 337 |
negative_prompt = gr.Text(
|
| 338 |
label="反向词条",
|
| 339 |
max_lines=5,
|
| 340 |
-
lines=
|
| 341 |
placeholder="输入你要排除的图片关键词",
|
| 342 |
value="",
|
| 343 |
visible=True,
|
| 344 |
)
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
|
|
|
| 353 |
with gr.Row(visible=True):
|
| 354 |
width = gr.Slider(
|
| 355 |
label="宽度",
|
|
@@ -371,7 +371,7 @@ with gr.Blocks() as demo:
|
|
| 371 |
minimum=0.1,
|
| 372 |
maximum=10,
|
| 373 |
step=0.1,
|
| 374 |
-
value=
|
| 375 |
)
|
| 376 |
num_inference_steps = gr.Slider(
|
| 377 |
label="生成步数",
|
|
|
|
| 322 |
return image_with_metadata, seed
|
| 323 |
|
| 324 |
with gr.Blocks() as demo:
|
| 325 |
+
with gr.Group():
|
| 326 |
+
prompt = gr.Text(
|
| 327 |
+
label="关键词",
|
| 328 |
+
show_label=True,
|
| 329 |
+
lines=5,
|
| 330 |
+
placeholder="输入你要的图片关键词",
|
| 331 |
+
container=False,
|
| 332 |
+
)
|
| 333 |
+
run_button = gr.Button("生成", scale=0, variant="primary")
|
|
|
|
| 334 |
result = gr.Image(label="Result", show_label=False, format="png")
|
| 335 |
with gr.Row():
|
| 336 |
negative_prompt = gr.Text(
|
| 337 |
label="反向词条",
|
| 338 |
max_lines=5,
|
| 339 |
+
lines=1,
|
| 340 |
placeholder="输入你要排除的图片关键词",
|
| 341 |
value="",
|
| 342 |
visible=True,
|
| 343 |
)
|
| 344 |
+
with gr.Row(visible=True):
|
| 345 |
+
seed = gr.Slider(
|
| 346 |
+
label="种子",
|
| 347 |
+
minimum=0,
|
| 348 |
+
maximum=MAX_SEED,
|
| 349 |
+
step=1,
|
| 350 |
+
value=0,
|
| 351 |
+
)
|
| 352 |
+
randomize_seed = gr.Checkbox(label="随机种子", value=True)
|
| 353 |
with gr.Row(visible=True):
|
| 354 |
width = gr.Slider(
|
| 355 |
label="宽度",
|
|
|
|
| 371 |
minimum=0.1,
|
| 372 |
maximum=10,
|
| 373 |
step=0.1,
|
| 374 |
+
value=3.0,
|
| 375 |
)
|
| 376 |
num_inference_steps = gr.Slider(
|
| 377 |
label="生成步数",
|