Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,21 +60,21 @@ with gr.Blocks(css=css) as demo:
|
|
| 60 |
container=False,
|
| 61 |
)
|
| 62 |
|
| 63 |
-
run_button = gr.Button("
|
| 64 |
|
| 65 |
-
result = gr.Image(label="
|
| 66 |
|
| 67 |
-
with gr.Accordion("
|
| 68 |
|
| 69 |
seed = gr.Slider(
|
| 70 |
-
label="
|
| 71 |
minimum=0,
|
| 72 |
maximum=MAX_SEED,
|
| 73 |
step=1,
|
| 74 |
value=0,
|
| 75 |
)
|
| 76 |
|
| 77 |
-
randomize_seed = gr.Checkbox(label="
|
| 78 |
|
| 79 |
with gr.Row():
|
| 80 |
|
|
|
|
| 60 |
container=False,
|
| 61 |
)
|
| 62 |
|
| 63 |
+
run_button = gr.Button("运行", scale=0)
|
| 64 |
|
| 65 |
+
result = gr.Image(label="生成结果", show_label=False)
|
| 66 |
|
| 67 |
+
with gr.Accordion("高级设置", open=False):
|
| 68 |
|
| 69 |
seed = gr.Slider(
|
| 70 |
+
label="种子",
|
| 71 |
minimum=0,
|
| 72 |
maximum=MAX_SEED,
|
| 73 |
step=1,
|
| 74 |
value=0,
|
| 75 |
)
|
| 76 |
|
| 77 |
+
randomize_seed = gr.Checkbox(label="随机种子", value=True)
|
| 78 |
|
| 79 |
with gr.Row():
|
| 80 |
|