Spaces:
Running
on
Zero
Running
on
Zero
Elea Zhong
commited on
Commit
·
084995d
1
Parent(s):
ad7e237
update app
Browse files
app.py
CHANGED
|
@@ -93,6 +93,8 @@ def optim_pipe():
|
|
| 93 |
}
|
| 94 |
)
|
| 95 |
|
|
|
|
|
|
|
| 96 |
MAX_SEED = np.iinfo(np.int32).max
|
| 97 |
|
| 98 |
|
|
@@ -161,7 +163,7 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
|
|
| 161 |
image = gr.Image(label="Input Image", type="pil")
|
| 162 |
prompt = gr.Textbox(label="Prompt", placeholder="Prompt", lines=2)
|
| 163 |
|
| 164 |
-
num_runs = gr.Slider(label="Run Consecutively", minimum=0, maximum=100, step=1, value=
|
| 165 |
|
| 166 |
run_btn = gr.Button("Generate", variant="primary")
|
| 167 |
|
|
|
|
| 93 |
}
|
| 94 |
)
|
| 95 |
|
| 96 |
+
optim_pipe()
|
| 97 |
+
|
| 98 |
MAX_SEED = np.iinfo(np.int32).max
|
| 99 |
|
| 100 |
|
|
|
|
| 163 |
image = gr.Image(label="Input Image", type="pil")
|
| 164 |
prompt = gr.Textbox(label="Prompt", placeholder="Prompt", lines=2)
|
| 165 |
|
| 166 |
+
num_runs = gr.Slider(label="Run Consecutively", minimum=0, maximum=100, step=1, value=4)
|
| 167 |
|
| 168 |
run_btn = gr.Button("Generate", variant="primary")
|
| 169 |
|