Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -482,15 +482,15 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
-
|
| 486 |
inputs=[input_image, pcs, epochs, weight_decay,lr],
|
| 487 |
outputs = [gallery, file_output])
|
| 488 |
|
| 489 |
|
| 490 |
-
|
| 491 |
|
| 492 |
|
| 493 |
-
|
| 494 |
fn=edit_inference, inputs=[prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[gallery]
|
| 495 |
)
|
| 496 |
file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
|
|
|
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
+
invert_button.click(fn=run_inversion,
|
| 486 |
inputs=[input_image, pcs, epochs, weight_decay,lr],
|
| 487 |
outputs = [gallery, file_output])
|
| 488 |
|
| 489 |
|
| 490 |
+
sample.click(fn=sample_then_run, outputs=[gallery, file_output])
|
| 491 |
|
| 492 |
|
| 493 |
+
submit.click(
|
| 494 |
fn=edit_inference, inputs=[prompt, negative_prompt, cfg, steps, seed, injection_step, a1, a2, a3, a4], outputs=[gallery]
|
| 495 |
)
|
| 496 |
file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
|