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