GreenGoat commited on
Commit
9584c68
·
verified ·
1 Parent(s): 56f4fcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -517,8 +517,8 @@ def create_demo():
517
  with gr.Row():
518
  with gr.Column():
519
  with gr.Row():
520
- input_fg = gr.Image(source='upload', type="numpy", label="Foreground Image", height=400)
521
- input_bg = gr.Image(source='upload', type="numpy", label="Background Image", height=400)
522
 
523
  prompt = gr.Textbox(label="Prompt", value="beautiful woman, cinematic lighting")
524
  bg_source = gr.Radio(
@@ -553,7 +553,7 @@ def create_demo():
553
  n_prompt = gr.Textbox(label="Negative Prompt", value='lowres, bad anatomy, bad hands, cropped, worst quality')
554
 
555
  with gr.Column():
556
- result_gallery = gr.Gallery(label='Results', height=600, object_fit='contain')
557
 
558
  # Event handlers
559
  inputs = [input_fg, input_bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source]
 
517
  with gr.Row():
518
  with gr.Column():
519
  with gr.Row():
520
+ input_fg = gr.Image(label="Foreground Image", height=400, type="numpy")
521
+ input_bg = gr.Image(label="Background Image", height=400, type="numpy")
522
 
523
  prompt = gr.Textbox(label="Prompt", value="beautiful woman, cinematic lighting")
524
  bg_source = gr.Radio(
 
553
  n_prompt = gr.Textbox(label="Negative Prompt", value='lowres, bad anatomy, bad hands, cropped, worst quality')
554
 
555
  with gr.Column():
556
+ result_gallery = gr.Gallery(label='Results', height=600, columns=2, rows=2)
557
 
558
  # Event handlers
559
  inputs = [input_fg, input_bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source]