Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -189,6 +189,8 @@ def infer(edit_images,
|
|
| 189 |
control_mask=mask,
|
| 190 |
controlnet_conditioning_scale=strength,
|
| 191 |
num_inference_steps=num_inference_steps,
|
|
|
|
|
|
|
| 192 |
true_cfg_scale=true_cfg_scale,
|
| 193 |
generator=torch.Generator(device="cuda").manual_seed(seed)
|
| 194 |
).images[0]
|
|
@@ -236,7 +238,7 @@ with gr.Blocks(css=css, theme=gr.themes.Citrus()) as demo:
|
|
| 236 |
label="Prompt",
|
| 237 |
show_label=False,
|
| 238 |
max_lines=1,
|
| 239 |
-
placeholder="Enter your prompt
|
| 240 |
container=False,
|
| 241 |
)
|
| 242 |
negative_prompt = gr.Text(
|
|
@@ -245,7 +247,7 @@ with gr.Blocks(css=css, theme=gr.themes.Citrus()) as demo:
|
|
| 245 |
max_lines=1,
|
| 246 |
placeholder="Enter what you don't want (optional)",
|
| 247 |
container=False,
|
| 248 |
-
value="",
|
| 249 |
visible=False
|
| 250 |
)
|
| 251 |
run_button = gr.Button("Run")
|
|
|
|
| 189 |
control_mask=mask,
|
| 190 |
controlnet_conditioning_scale=strength,
|
| 191 |
num_inference_steps=num_inference_steps,
|
| 192 |
+
width=image.size[0],
|
| 193 |
+
height=image.size[1],
|
| 194 |
true_cfg_scale=true_cfg_scale,
|
| 195 |
generator=torch.Generator(device="cuda").manual_seed(seed)
|
| 196 |
).images[0]
|
|
|
|
| 238 |
label="Prompt",
|
| 239 |
show_label=False,
|
| 240 |
max_lines=1,
|
| 241 |
+
placeholder="Enter your prompt",
|
| 242 |
container=False,
|
| 243 |
)
|
| 244 |
negative_prompt = gr.Text(
|
|
|
|
| 247 |
max_lines=1,
|
| 248 |
placeholder="Enter what you don't want (optional)",
|
| 249 |
container=False,
|
| 250 |
+
value=" ",
|
| 251 |
visible=False
|
| 252 |
)
|
| 253 |
run_button = gr.Button("Run")
|