Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,7 @@ pipe.to("cuda")
|
|
| 29 |
@spaces.GPU
|
| 30 |
def generate_image(prompt, height, width, num_inference_steps, seed, randomize_seed, num_images):
|
| 31 |
"""Generate multiple images from the given prompt."""
|
|
|
|
| 32 |
if randomize_seed:
|
| 33 |
seed = torch.randint(0, 2**32 - 1, (1,)).item()
|
| 34 |
|
|
|
|
| 29 |
@spaces.GPU
|
| 30 |
def generate_image(prompt, height, width, num_inference_steps, seed, randomize_seed, num_images):
|
| 31 |
"""Generate multiple images from the given prompt."""
|
| 32 |
+
print(prompt)
|
| 33 |
if randomize_seed:
|
| 34 |
seed = torch.randint(0, 2**32 - 1, (1,)).item()
|
| 35 |
|