Spaces:
Runtime error
Runtime error
add queue=False
Browse files
app.py
CHANGED
@@ -804,8 +804,8 @@ if __name__ == "__main__":
|
|
804 |
submit_button_s2i.click(generate, inputs=[image_source_s2i, image_reference, text_input, negative_text_input, steps_input_s2i, random_seed_s2i, cfg_image_scale_s2i, cfg_text_scale_s2i, cfg_image_space_scale_s2i, cfg_image_reference_mix_weight_s2i, cfg_image_source_mix_weight_s2i, mask_scale_s2i, use_edge_default, height_default, width_default, do_sr, mode_s2i], outputs=[gallery_outputs, gallery_inputs])
|
805 |
submit_button_scr2i.click(generate, inputs=[image_source_scr2i, image_reference, text_input, negative_text_input, steps_input_scr2i, random_seed_scr2i, cfg_image_scale_scr2i, cfg_text_scale_scr2i, cfg_image_space_scale_scr2i, cfg_image_reference_mix_weight_scr2i, cfg_image_source_mix_weight_scr2i, mask_scale_scr2i, use_edge_default, height_default, width_default, do_sr, mode_scr2i], outputs=[gallery_outputs, gallery_inputs])
|
806 |
submit_button_cs2i.click(generate, inputs=[image_source_cs2i, image_reference, text_input, negative_text_input, steps_input_cs2i, random_seed_cs2i, cfg_image_scale_cs2i, cfg_text_scale_cs2i, cfg_image_space_scale_cs2i, cfg_image_reference_mix_weight_cs2i, cfg_image_source_mix_weight_cs2i, mask_scale_cs2i, use_edge_default, height_default, width_default, do_sr, mode_cs2i], outputs=[gallery_outputs, gallery_inputs])
|
807 |
-
build_canvas_s2i.click(generate_canvas, inputs=[image_source_s2i], outputs=[image_source_s2i])
|
808 |
-
build_canvas_scr2i.click(generate_canvas, inputs=[image_source_scr2i], outputs=[image_source_scr2i])
|
809 |
-
submit_surprise_me.click(surprise_me, outputs=[text_input])
|
810 |
demo.queue()
|
811 |
demo.launch()
|
|
|
804 |
submit_button_s2i.click(generate, inputs=[image_source_s2i, image_reference, text_input, negative_text_input, steps_input_s2i, random_seed_s2i, cfg_image_scale_s2i, cfg_text_scale_s2i, cfg_image_space_scale_s2i, cfg_image_reference_mix_weight_s2i, cfg_image_source_mix_weight_s2i, mask_scale_s2i, use_edge_default, height_default, width_default, do_sr, mode_s2i], outputs=[gallery_outputs, gallery_inputs])
|
805 |
submit_button_scr2i.click(generate, inputs=[image_source_scr2i, image_reference, text_input, negative_text_input, steps_input_scr2i, random_seed_scr2i, cfg_image_scale_scr2i, cfg_text_scale_scr2i, cfg_image_space_scale_scr2i, cfg_image_reference_mix_weight_scr2i, cfg_image_source_mix_weight_scr2i, mask_scale_scr2i, use_edge_default, height_default, width_default, do_sr, mode_scr2i], outputs=[gallery_outputs, gallery_inputs])
|
806 |
submit_button_cs2i.click(generate, inputs=[image_source_cs2i, image_reference, text_input, negative_text_input, steps_input_cs2i, random_seed_cs2i, cfg_image_scale_cs2i, cfg_text_scale_cs2i, cfg_image_space_scale_cs2i, cfg_image_reference_mix_weight_cs2i, cfg_image_source_mix_weight_cs2i, mask_scale_cs2i, use_edge_default, height_default, width_default, do_sr, mode_cs2i], outputs=[gallery_outputs, gallery_inputs])
|
807 |
+
build_canvas_s2i.click(generate_canvas, inputs=[image_source_s2i], outputs=[image_source_s2i], queue=False)
|
808 |
+
build_canvas_scr2i.click(generate_canvas, inputs=[image_source_scr2i], outputs=[image_source_scr2i], queue=False)
|
809 |
+
submit_surprise_me.click(surprise_me, outputs=[text_input], queue=False)
|
810 |
demo.queue()
|
811 |
demo.launch()
|