Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def generate(
|
|
79 |
num_inference_steps: int = 25,
|
80 |
randomize_seed: bool = False,
|
81 |
use_resolution_binning: bool = True,
|
82 |
-
num_images: int =
|
83 |
progress=gr.Progress(track_tqdm=True),
|
84 |
):
|
85 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
@@ -124,14 +124,14 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
124 |
container=False,
|
125 |
)
|
126 |
run_button = gr.Button("Run", scale=0)
|
127 |
-
result = gr.Gallery(label="Result", columns=
|
128 |
with gr.Accordion("Advanced options", open=False, visible=True):
|
129 |
num_images = gr.Slider(
|
130 |
label="Number of Images",
|
131 |
minimum=1,
|
132 |
maximum=4,
|
133 |
step=1,
|
134 |
-
value=
|
135 |
)
|
136 |
with gr.Row():
|
137 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
|
|
79 |
num_inference_steps: int = 25,
|
80 |
randomize_seed: bool = False,
|
81 |
use_resolution_binning: bool = True,
|
82 |
+
num_images: int = 4, # Number of images to generate
|
83 |
progress=gr.Progress(track_tqdm=True),
|
84 |
):
|
85 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
|
|
124 |
container=False,
|
125 |
)
|
126 |
run_button = gr.Button("Run", scale=0)
|
127 |
+
result = gr.Gallery(label="Result", columns=2, show_label=False)
|
128 |
with gr.Accordion("Advanced options", open=False, visible=True):
|
129 |
num_images = gr.Slider(
|
130 |
label="Number of Images",
|
131 |
minimum=1,
|
132 |
maximum=4,
|
133 |
step=1,
|
134 |
+
value=4,
|
135 |
)
|
136 |
with gr.Row():
|
137 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|