fffiloni commited on
Commit
2ae6665
·
verified ·
1 Parent(s): 76c6d78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -73,9 +73,7 @@ def generate_image(prompt, model, num_iterations, learning_rate, progress=gr.Pro
73
  try:
74
  # Run the main function with progress tracking
75
  def progress_callback(step):
76
- progress(step / num_iterations, f"Iteration {step}/{num_iterations}")
77
- current_image = f"{save_dir}/{step}.png"
78
- yield current_image, f"Iteration {step}/{num_iterations}", None
79
 
80
  best_image, total_init_rewards, total_best_rewards = main(args, progress_callback)
81
 
 
73
  try:
74
  # Run the main function with progress tracking
75
  def progress_callback(step):
76
+ progress(step / num_iterations, f"Iteration {step}/{num_iterations}")
 
 
77
 
78
  best_image, total_init_rewards, total_best_rewards = main(args, progress_callback)
79