zenafey commited on
Commit
78f90d9
1 Parent(s): b6c1699

change gr.Image() -> gr.Gallery() + remove unused kwargs

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(scale=6):
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.Image(value="https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png")
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(scale=6):
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.Image(value="https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png")
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"):