multimodalart HF staff KingNish commited on
Commit
2543f11
1 Parent(s): 0c66393

solved generated history doesn't match the generated image (#2)

Browse files

- solved generated history doesn't match the generated image (f60c459f4d0b867d24d6efe98c3285fae9d4185f)


Co-authored-by: Nishith Jain <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -575,7 +575,7 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
575
  inputs=[prompt, input_image, image_strength, cfg_scale, steps, selected_indices, lora_scale_1, lora_scale_2, randomize_seed, seed, width, height, loras_state],
576
  outputs=[result, seed, progress_bar]
577
  ).then( # Update the history gallery
578
- fn=lambda x, history: update_history(x[1], history),
579
  inputs=[result, history_gallery],
580
  outputs=history_gallery,
581
  )
 
575
  inputs=[prompt, input_image, image_strength, cfg_scale, steps, selected_indices, lora_scale_1, lora_scale_2, randomize_seed, seed, width, height, loras_state],
576
  outputs=[result, seed, progress_bar]
577
  ).then( # Update the history gallery
578
+ fn=lambda x, history: update_history(x, history),
579
  inputs=[result, history_gallery],
580
  outputs=history_gallery,
581
  )