Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def infer(
|
|
| 92 |
generator = torch.Generator(device=device).manual_seed(seed)
|
| 93 |
|
| 94 |
result = pipe(
|
| 95 |
-
image=image_subject
|
| 96 |
prompt=prompt,
|
| 97 |
# height=height,
|
| 98 |
# width=width,
|
|
@@ -125,7 +125,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 125 |
with gr.Row():
|
| 126 |
with gr.Column():
|
| 127 |
with gr.Row():
|
| 128 |
-
image_subject = gr.
|
| 129 |
image_background = gr.Image(label="background Image", type="pil", visible=False)
|
| 130 |
prompt = gr.Textbox(label="prompt")
|
| 131 |
run_button = gr.Button("Fuse", variant="primary")
|
|
|
|
| 92 |
generator = torch.Generator(device=device).manual_seed(seed)
|
| 93 |
|
| 94 |
result = pipe(
|
| 95 |
+
image=image_subject,
|
| 96 |
prompt=prompt,
|
| 97 |
# height=height,
|
| 98 |
# width=width,
|
|
|
|
| 125 |
with gr.Row():
|
| 126 |
with gr.Column():
|
| 127 |
with gr.Row():
|
| 128 |
+
image_subject = gr.Image(label="input image", type="pil")
|
| 129 |
image_background = gr.Image(label="background Image", type="pil", visible=False)
|
| 130 |
prompt = gr.Textbox(label="prompt")
|
| 131 |
run_button = gr.Button("Fuse", variant="primary")
|