Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
change gr.Image() -> gr.Gallery() + remove unused kwargs
Browse files
app.py
CHANGED
@@ -275,7 +275,7 @@ with gr.Blocks() as demo:
|
|
275 |
with gr.Column(scale=6, min_width=600):
|
276 |
prompt = gr.Textbox("space warrior, beautiful, female, ultrarealistic, soft lighting, 8k", placeholder="Prompt", show_label=False, lines=3)
|
277 |
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="3d, cartoon, anime, (deformed eyes, nose, ears, nose), bad anatomy, ugly")
|
278 |
-
with gr.Row(
|
279 |
text_button = gr.Button("Generate", variant='primary')
|
280 |
stop_btn = gr.Button("Cancel", elem_id="cancel")
|
281 |
|
@@ -323,7 +323,7 @@ with gr.Blocks() as demo:
|
|
323 |
|
324 |
|
325 |
with gr.Column(scale=2):
|
326 |
-
image_output = gr.
|
327 |
|
328 |
|
329 |
with gr.Tab("img2img", id='i2i'):
|
@@ -331,7 +331,7 @@ with gr.Blocks() as demo:
|
|
331 |
with gr.Column(scale=6, min_width=600):
|
332 |
i2i_prompt = gr.Textbox("space warrior, beautiful, female, ultrarealistic, soft lighting, 8k", placeholder="Prompt", show_label=False, lines=3)
|
333 |
i2i_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="3d, cartoon, anime, (deformed eyes, nose, ears, nose), bad anatomy, ugly")
|
334 |
-
with gr.Row(
|
335 |
i2i_text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
336 |
i2i_stop_btn = gr.Button("Cancel", elem_id="cancel")
|
337 |
|
@@ -362,7 +362,7 @@ with gr.Blocks() as demo:
|
|
362 |
|
363 |
|
364 |
with gr.Column(scale=2):
|
365 |
-
i2i_image_output = gr.
|
366 |
|
367 |
|
368 |
with gr.Tab("PNG Info"):
|
|
|
275 |
with gr.Column(scale=6, min_width=600):
|
276 |
prompt = gr.Textbox("space warrior, beautiful, female, ultrarealistic, soft lighting, 8k", placeholder="Prompt", show_label=False, lines=3)
|
277 |
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="3d, cartoon, anime, (deformed eyes, nose, ears, nose), bad anatomy, ugly")
|
278 |
+
with gr.Row():
|
279 |
text_button = gr.Button("Generate", variant='primary')
|
280 |
stop_btn = gr.Button("Cancel", elem_id="cancel")
|
281 |
|
|
|
323 |
|
324 |
|
325 |
with gr.Column(scale=2):
|
326 |
+
image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"], preview=True)
|
327 |
|
328 |
|
329 |
with gr.Tab("img2img", id='i2i'):
|
|
|
331 |
with gr.Column(scale=6, min_width=600):
|
332 |
i2i_prompt = gr.Textbox("space warrior, beautiful, female, ultrarealistic, soft lighting, 8k", placeholder="Prompt", show_label=False, lines=3)
|
333 |
i2i_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="3d, cartoon, anime, (deformed eyes, nose, ears, nose), bad anatomy, ugly")
|
334 |
+
with gr.Row():
|
335 |
i2i_text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
336 |
i2i_stop_btn = gr.Button("Cancel", elem_id="cancel")
|
337 |
|
|
|
362 |
|
363 |
|
364 |
with gr.Column(scale=2):
|
365 |
+
i2i_image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"], preview=True)
|
366 |
|
367 |
|
368 |
with gr.Tab("PNG Info"):
|