Oysiyl commited on
Commit
f2dcd82
·
verified ·
1 Parent(s): 18fa800

Refresh artistic validation after JSON load

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -5036,6 +5036,24 @@ with gr.Blocks(delete_cache=(3600, 3600)) as demo:
5036
  outputs=[import_json_input_artistic, import_status_artistic],
5037
  )
5038
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5039
  # Seed slider visibility toggle for artistic tab
5040
  artistic_use_custom_seed.change(
5041
  fn=lambda x: gr.update(visible=x),
 
5036
  outputs=[import_json_input_artistic, import_status_artistic],
5037
  )
5038
 
5039
+ load_settings_btn_artistic.click(
5040
+ fn=_get_artistic_validation_state,
5041
+ inputs=[
5042
+ artistic_text_input,
5043
+ artistic_input_type,
5044
+ artistic_image_size,
5045
+ artistic_border_size,
5046
+ artistic_error_correction,
5047
+ artistic_module_size,
5048
+ ],
5049
+ outputs=[
5050
+ artistic_validation_message,
5051
+ artistic_generate_btn,
5052
+ artistic_autofix_btn,
5053
+ artistic_recommended_image_size,
5054
+ ],
5055
+ )
5056
+
5057
  # Seed slider visibility toggle for artistic tab
5058
  artistic_use_custom_seed.change(
5059
  fn=lambda x: gr.update(visible=x),