Linoy Tsaban commited on
Commit
d8ed7f3
1 Parent(s): 6d75eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -222,7 +222,6 @@ with gr.Blocks(css='style.css') as demo:
222
  wts = gr.State()
223
  zs = gr.State()
224
  do_inversion = gr.State(value=True)
225
- src_prompt_changed = gr.State(value=False)
226
  sega_concepts_counter = gr.State(1)
227
 
228
 
@@ -379,14 +378,14 @@ with gr.Blocks(css='style.css') as demo:
379
  )
380
 
381
  # Repeat inversion when these params are changed:
382
- src_prompt.changed(
383
  fn = reset_do_inversion,
384
  outputs = [do_inversion], queue = False
385
  )
386
- steps.changed(fn = reset_do_inversion,
387
  outputs = [do_inversion], queue = False)
388
 
389
- src_cfg_scale.changed(fn = reset_do_inversion,
390
  outputs = [do_inversion], queue = False)
391
 
392
 
 
222
  wts = gr.State()
223
  zs = gr.State()
224
  do_inversion = gr.State(value=True)
 
225
  sega_concepts_counter = gr.State(1)
226
 
227
 
 
378
  )
379
 
380
  # Repeat inversion when these params are changed:
381
+ src_prompt.change(
382
  fn = reset_do_inversion,
383
  outputs = [do_inversion], queue = False
384
  )
385
+ steps.change(fn = reset_do_inversion,
386
  outputs = [do_inversion], queue = False)
387
 
388
+ src_cfg_scale.change(fn = reset_do_inversion,
389
  outputs = [do_inversion], queue = False)
390
 
391