PseudoTerminal X commited on
Commit
5ff0926
1 Parent(s): 30232a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -10,9 +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(total=num_inference_steps) as progress:
14
- for i in range(num_inference_steps):
15
- progress.update(progress=i)
16
  return pipe(
17
  prompt,
18
  negative_prompt=negative_prompt,
 
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() as progress:
 
 
14
  return pipe(
15
  prompt,
16
  negative_prompt=negative_prompt,