Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
8391927
1
Parent(s):
f071d5c
update generate button
Browse files
app.py
CHANGED
|
@@ -626,19 +626,25 @@ with gr.Blocks(theme=theme, css=css_code, title="Panorama Z-Image") as app:
|
|
| 626 |
fn=calculate_tile_size,
|
| 627 |
inputs=[height, width, overlap],
|
| 628 |
outputs=[new_target_height, new_target_width],
|
| 629 |
-
|
| 630 |
)
|
| 631 |
generate_button.click(
|
| 632 |
-
fn=
|
| 633 |
-
inputs=
|
| 634 |
-
outputs=
|
| 635 |
queue=False,
|
| 636 |
-
api_name=False
|
| 637 |
).then(
|
| 638 |
fn=calculate_tile_size,
|
| 639 |
inputs=[height, width, overlap],
|
| 640 |
outputs=[new_target_height, new_target_width],
|
| 641 |
-
show_api=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 642 |
).then(
|
| 643 |
fn=generate_z_image_panorama,
|
| 644 |
inputs=predict_inputs,
|
|
|
|
| 626 |
fn=calculate_tile_size,
|
| 627 |
inputs=[height, width, overlap],
|
| 628 |
outputs=[new_target_height, new_target_width],
|
| 629 |
+
api_name="calculate_tile_size"
|
| 630 |
)
|
| 631 |
generate_button.click(
|
| 632 |
+
fn=clear_result,
|
| 633 |
+
inputs=None,
|
| 634 |
+
outputs=result,
|
| 635 |
queue=False,
|
| 636 |
+
api_name=False
|
| 637 |
).then(
|
| 638 |
fn=calculate_tile_size,
|
| 639 |
inputs=[height, width, overlap],
|
| 640 |
outputs=[new_target_height, new_target_width],
|
| 641 |
+
show_api=False
|
| 642 |
+
).then(
|
| 643 |
+
fn=randomize_seed_fn,
|
| 644 |
+
inputs=[generation_seed, randomize_seed],
|
| 645 |
+
outputs=generation_seed,
|
| 646 |
+
queue=False,
|
| 647 |
+
api_name=False,
|
| 648 |
).then(
|
| 649 |
fn=generate_z_image_panorama,
|
| 650 |
inputs=predict_inputs,
|