Spaces:
Running
on
Zero
Running
on
Zero
CharlesCXK
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def generate_image(prompt,
|
|
153 |
np.random.seed(seed)
|
154 |
width = 384
|
155 |
height = 384
|
156 |
-
parallel_size =
|
157 |
|
158 |
with torch.no_grad():
|
159 |
messages = [{'role': '<|User|>', 'content': prompt},
|
@@ -239,7 +239,7 @@ with gr.Blocks(css=css) as demo:
|
|
239 |
|
240 |
generation_button = gr.Button("Generate Images")
|
241 |
|
242 |
-
image_output = gr.Gallery(label="Generated Images", columns=
|
243 |
|
244 |
with gr.Accordion("Advanced options", open=False):
|
245 |
with gr.Row():
|
|
|
153 |
np.random.seed(seed)
|
154 |
width = 384
|
155 |
height = 384
|
156 |
+
parallel_size = 4
|
157 |
|
158 |
with torch.no_grad():
|
159 |
messages = [{'role': '<|User|>', 'content': prompt},
|
|
|
239 |
|
240 |
generation_button = gr.Button("Generate Images")
|
241 |
|
242 |
+
image_output = gr.Gallery(label="Generated Images", columns=4, rows=1)
|
243 |
|
244 |
with gr.Accordion("Advanced options", open=False):
|
245 |
with gr.Row():
|