solved generated history doesn't match the generated image

#2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -575,7 +575,7 @@ with gr.Blocks(theme=gr.themes.Soft(), 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
  )