PseudoTerminal X commited on
Commit
30232a4
·
verified ·
1 Parent(s): 622021c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ pipe.to('cuda')
10
  # Define the image generation function with adjustable parameters and a progress bar
11
  @spaces.GPU
12
  def generate(prompt, guidance_scale, guidance_rescale, num_inference_steps, negative_prompt):
13
- with gr.Progress(steps=num_inference_steps) as progress:
14
  for i in range(num_inference_steps):
15
  progress.update(progress=i)
16
  return pipe(
 
10
  # Define the image generation function with adjustable parameters and a progress bar
11
  @spaces.GPU
12
  def generate(prompt, guidance_scale, guidance_rescale, num_inference_steps, negative_prompt):
13
+ with gr.Progress(total=num_inference_steps) as progress:
14
  for i in range(num_inference_steps):
15
  progress.update(progress=i)
16
  return pipe(