linoyts HF Staff commited on
Commit
6a4f2df
·
verified ·
1 Parent(s): 1840c1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,11 +116,11 @@ def invert_and_edit(image,
116
  [source_prompt, edit_prompt],
117
  height=1024,
118
  width=1024,
119
- guidance_scale=[1] + [3] * (len(prompts) - 1),
120
  output_type="pil",
121
  num_inference_steps=50,
122
  max_sequence_length=512,
123
- latents=inverted_latent_list[-1].tile(len(prompts), 1, 1),
124
  inverted_latent_list=inverted_latent_list,
125
  mm_copy_blocks=MULTIMODAL_VITAL_LAYERS,
126
  single_copy_blocks=SINGLE_MODAL_VITAL_LAYERS,
 
116
  [source_prompt, edit_prompt],
117
  height=1024,
118
  width=1024,
119
+ guidance_scale=[1,3],
120
  output_type="pil",
121
  num_inference_steps=50,
122
  max_sequence_length=512,
123
+ latents=inverted_latent_list[-1].tile(2, 1, 1),
124
  inverted_latent_list=inverted_latent_list,
125
  mm_copy_blocks=MULTIMODAL_VITAL_LAYERS,
126
  single_copy_blocks=SINGLE_MODAL_VITAL_LAYERS,