barakmam commited on
Commit
8b4ae53
·
1 Parent(s): 418ccd7

trigger set_pipe on image change

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -194,10 +194,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
194
 
195
  gr.Markdown(f"""Disclaimer: Performance may be inferior to the reported in the paper due to hardware limitation.
196
  """)
197
- # input_image.change(set_pipe,
198
- # inputs=[input_image, description_prompt, edit_guidance_scale, num_inference_steps,
199
- # num_inference_steps, inversion_max_step, rnri_iterations, rnri_alpha, rnri_lr],
200
- # outputs=[inv_state, is_set_text], trigger_mode='once')
201
 
202
  description_prompt.change(set_pipe, inputs=[input_image, description_prompt, edit_guidance_scale,
203
  num_inference_steps,
 
194
 
195
  gr.Markdown(f"""Disclaimer: Performance may be inferior to the reported in the paper due to hardware limitation.
196
  """)
197
+ input_image.change(set_pipe,
198
+ inputs=[input_image, description_prompt, edit_guidance_scale, num_inference_steps,
199
+ num_inference_steps, inversion_max_step, rnri_iterations, rnri_alpha, rnri_lr],
200
+ outputs=[inv_state, is_set_text], trigger_mode='once')
201
 
202
  description_prompt.change(set_pipe, inputs=[input_image, description_prompt, edit_guidance_scale,
203
  num_inference_steps,