hysts HF staff commited on
Commit
f3b9b59
1 Parent(s): 16d15ba
Files changed (1) hide show
  1. edit_app.py +11 -2
edit_app.py CHANGED
@@ -112,7 +112,7 @@ def generate(
112
 
113
 
114
  def reset():
115
- return [0, "Randomize Seed", 1371, "Fix CFG", 7.5, 1.5, None]
116
 
117
 
118
  def process_example(input_image: Image.Image, instruction: str, seed: int) -> Image.Image:
@@ -190,7 +190,16 @@ InstructPix2Pix: Learning to Follow Image Editing Instructions
190
  )
191
  reset_button.click(
192
  fn=reset,
193
- outputs=[steps, randomize_seed, seed, randomize_cfg, text_cfg_scale, image_cfg_scale, edited_image],
 
 
 
 
 
 
 
 
 
194
  queue=False,
195
  api_name=False,
196
  )
 
112
 
113
 
114
  def reset():
115
+ return [None, 50, "Randomize Seed", 1371, "Fix CFG", 7.5, 1.5, None]
116
 
117
 
118
  def process_example(input_image: Image.Image, instruction: str, seed: int) -> Image.Image:
 
190
  )
191
  reset_button.click(
192
  fn=reset,
193
+ outputs=[
194
+ instruction,
195
+ steps,
196
+ randomize_seed,
197
+ seed,
198
+ randomize_cfg,
199
+ text_cfg_scale,
200
+ image_cfg_scale,
201
+ edited_image,
202
+ ],
203
  queue=False,
204
  api_name=False,
205
  )