Spaces:
Sleeping
Sleeping
PseudoTerminal X
commited on
Update app.py
Browse files
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(
|
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(
|