Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|
521 |
-
input_bg = gr.Image(
|
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,
|
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]
|