Update
Browse files- edit_app.py +4 -1
edit_app.py
CHANGED
|
@@ -173,6 +173,7 @@ InstructPix2Pix: Learning to Follow Image Editing Instructions
|
|
| 173 |
image_cfg_scale,
|
| 174 |
],
|
| 175 |
outputs=[input_image, instruction, seed, text_cfg_scale, image_cfg_scale, edited_image],
|
|
|
|
| 176 |
)
|
| 177 |
generate_button.click(
|
| 178 |
fn=generate,
|
|
@@ -187,11 +188,13 @@ InstructPix2Pix: Learning to Follow Image Editing Instructions
|
|
| 187 |
image_cfg_scale,
|
| 188 |
],
|
| 189 |
outputs=[seed, text_cfg_scale, image_cfg_scale, edited_image],
|
|
|
|
| 190 |
)
|
| 191 |
reset_button.click(
|
| 192 |
fn=reset,
|
| 193 |
-
inputs=[],
|
| 194 |
outputs=[steps, randomize_seed, seed, randomize_cfg, text_cfg_scale, image_cfg_scale, edited_image],
|
|
|
|
|
|
|
| 195 |
)
|
| 196 |
|
| 197 |
|
|
|
|
| 173 |
image_cfg_scale,
|
| 174 |
],
|
| 175 |
outputs=[input_image, instruction, seed, text_cfg_scale, image_cfg_scale, edited_image],
|
| 176 |
+
api_name=False,
|
| 177 |
)
|
| 178 |
generate_button.click(
|
| 179 |
fn=generate,
|
|
|
|
| 188 |
image_cfg_scale,
|
| 189 |
],
|
| 190 |
outputs=[seed, text_cfg_scale, image_cfg_scale, edited_image],
|
| 191 |
+
api_name="run",
|
| 192 |
)
|
| 193 |
reset_button.click(
|
| 194 |
fn=reset,
|
|
|
|
| 195 |
outputs=[steps, randomize_seed, seed, randomize_cfg, text_cfg_scale, image_cfg_scale, edited_image],
|
| 196 |
+
queue=False,
|
| 197 |
+
api_name=False,
|
| 198 |
)
|
| 199 |
|
| 200 |
|