Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -207,8 +207,8 @@ def generate_image(prompt_embeds, image_list, width, height, num_inference_steps
|
|
| 207 |
pipe_kwargs["num_inference_steps"] = num_inference_steps
|
| 208 |
|
| 209 |
# Progress bar for the actual generation steps
|
| 210 |
-
if progress:
|
| 211 |
-
|
| 212 |
|
| 213 |
image = pipe(**pipe_kwargs).images[0]
|
| 214 |
img= image
|
|
@@ -254,7 +254,7 @@ def infer(prompt, input_images=None, seed=42, randomize_seed=False, width=1024,
|
|
| 254 |
guidance_scale,
|
| 255 |
seed,
|
| 256 |
use_turbo,
|
| 257 |
-
progress
|
| 258 |
)
|
| 259 |
|
| 260 |
return image, uri
|
|
|
|
| 207 |
pipe_kwargs["num_inference_steps"] = num_inference_steps
|
| 208 |
|
| 209 |
# Progress bar for the actual generation steps
|
| 210 |
+
# if progress:
|
| 211 |
+
# progress(0, desc="Starting generation...")
|
| 212 |
|
| 213 |
image = pipe(**pipe_kwargs).images[0]
|
| 214 |
img= image
|
|
|
|
| 254 |
guidance_scale,
|
| 255 |
seed,
|
| 256 |
use_turbo,
|
| 257 |
+
# progress
|
| 258 |
)
|
| 259 |
|
| 260 |
return image, uri
|