AlekseyCalvin commited on
Commit
e8ffed1
1 Parent(s): 041bd77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def update_selection(evt: gr.SelectData, width, height):
109
  )
110
 
111
  @spaces.GPU(duration=70)
112
- def generate_image(prompt, negative_prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress):
113
  pipe.to("cuda")
114
  generator = torch.Generator(device="cuda").manual_seed(seed)
115
 
@@ -123,6 +123,7 @@ def generate_image(prompt, negative_prompt, trigger_word, steps, seed, cfg_scale
123
  width=width,
124
  height=height,
125
  generator=generator,
 
126
  joint_attention_kwargs={"scale": lora_scale},
127
  ).images[0]
128
  return image
 
109
  )
110
 
111
  @spaces.GPU(duration=70)
112
+ def generate_image(prompt, negative_prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
113
  pipe.to("cuda")
114
  generator = torch.Generator(device="cuda").manual_seed(seed)
115
 
 
123
  width=width,
124
  height=height,
125
  generator=generator,
126
+ progress=gr.Progress(track_tqdm=True)
127
  joint_attention_kwargs={"scale": lora_scale},
128
  ).images[0]
129
  return image