Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ def generate(
|
|
| 131 |
seed: int = 0,
|
| 132 |
width: int = 1024,
|
| 133 |
height: int = 1024,
|
| 134 |
-
inference_steps: int =
|
| 135 |
randomize_seed: bool = False,
|
| 136 |
use_resolution_binning: bool = True,
|
| 137 |
progress=gr.Progress(track_tqdm=True),
|
|
@@ -191,7 +191,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 191 |
container=False,
|
| 192 |
)
|
| 193 |
run_button = gr.Button("Run", scale=0)
|
| 194 |
-
result = gr.Gallery(label="Result", columns=
|
| 195 |
|
| 196 |
with gr.Accordion("Advanced options", open=False):
|
| 197 |
with gr.Group():
|
|
@@ -269,7 +269,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 269 |
negative_prompt,
|
| 270 |
style_selection,
|
| 271 |
use_negative_prompt,
|
| 272 |
-
# num_imgs,
|
| 273 |
seed,
|
| 274 |
width,
|
| 275 |
height,
|
|
@@ -281,4 +280,4 @@ with gr.Blocks(css=css) as demo:
|
|
| 281 |
)
|
| 282 |
|
| 283 |
if __name__ == "__main__":
|
| 284 |
-
demo.queue(max_size=
|
|
|
|
| 131 |
seed: int = 0,
|
| 132 |
width: int = 1024,
|
| 133 |
height: int = 1024,
|
| 134 |
+
inference_steps: int = 8,
|
| 135 |
randomize_seed: bool = False,
|
| 136 |
use_resolution_binning: bool = True,
|
| 137 |
progress=gr.Progress(track_tqdm=True),
|
|
|
|
| 191 |
container=False,
|
| 192 |
)
|
| 193 |
run_button = gr.Button("Run", scale=0)
|
| 194 |
+
result = gr.Gallery(label="Result", columns=1, show_label=False)
|
| 195 |
|
| 196 |
with gr.Accordion("Advanced options", open=False):
|
| 197 |
with gr.Group():
|
|
|
|
| 269 |
negative_prompt,
|
| 270 |
style_selection,
|
| 271 |
use_negative_prompt,
|
|
|
|
| 272 |
seed,
|
| 273 |
width,
|
| 274 |
height,
|
|
|
|
| 280 |
)
|
| 281 |
|
| 282 |
if __name__ == "__main__":
|
| 283 |
+
demo.queue(max_size=200).launch()
|