Keltezaa commited on
Commit
3bddc45
·
verified ·
1 Parent(s): 5aba378

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -105,16 +105,6 @@ def download_file(url, directory=None):
105
 
106
  return filepath
107
 
108
-
109
-
110
-
111
-
112
- #multimodalart/flux-lora-lab - do not edit
113
-
114
-
115
-
116
-
117
-
118
  def update_selection(evt: gr.SelectData, selected_indices, loras_state, width, height):
119
  selected_index = evt.index
120
  selected_indices = selected_indices or []
@@ -409,7 +399,7 @@ def run_lora(prompt, cfg_scale, steps, selected_indices, lora_scale_1, lora_scal
409
  # step_counter = 0
410
  for image in image_generator:
411
  step_counter += 1
412
- # final_image = image
413
  progress_bar = f'<div class="progress-container"><div class="progress-bar" style="--current: {step_counter}; --total: {steps};"></div></div>'
414
  yield image, seed, gr.update(value=progress_bar, visible=True)
415
  # yield final_image, seed, gr.update(value=progress_bar, visible=False)
 
105
 
106
  return filepath
107
 
 
 
 
 
 
 
 
 
 
 
108
  def update_selection(evt: gr.SelectData, selected_indices, loras_state, width, height):
109
  selected_index = evt.index
110
  selected_indices = selected_indices or []
 
399
  # step_counter = 0
400
  for image in image_generator:
401
  step_counter += 1
402
+ final_image = image
403
  progress_bar = f'<div class="progress-container"><div class="progress-bar" style="--current: {step_counter}; --total: {steps};"></div></div>'
404
  yield image, seed, gr.update(value=progress_bar, visible=True)
405
  # yield final_image, seed, gr.update(value=progress_bar, visible=False)