Spaces:
Sleeping
Sleeping
Update inference_code.py
Browse files- inference_code.py +1 -1
inference_code.py
CHANGED
@@ -17,7 +17,7 @@ def generate_images(prompt):
|
|
17 |
num_inference_steps = 20
|
18 |
|
19 |
images = pipeline(prompt, width=512, num_inference_steps=20, num_images_per_prompt=1).images
|
20 |
-
images = pipeline.numpy_to_pil(np.asarray(images.reshape((1,) + images.shape[-3:])))
|
21 |
|
22 |
|
23 |
# num_samples = jax.device_count()
|
|
|
17 |
num_inference_steps = 20
|
18 |
|
19 |
images = pipeline(prompt, width=512, num_inference_steps=20, num_images_per_prompt=1).images
|
20 |
+
# images = pipeline.numpy_to_pil(np.asarray(images.reshape((1,) + images.shape[-3:])))
|
21 |
|
22 |
|
23 |
# num_samples = jax.device_count()
|