Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ print("Pipeline loaded!")
|
|
| 16 |
@spaces.GPU
|
| 17 |
def generate_image(prompt, height, width, num_inference_steps, seed, randomize_seed):
|
| 18 |
"""Generate an image from the given prompt."""
|
|
|
|
| 19 |
if randomize_seed:
|
| 20 |
seed = torch.randint(0, 2**32 - 1, (1,)).item()
|
| 21 |
|
|
|
|
| 16 |
@spaces.GPU
|
| 17 |
def generate_image(prompt, height, width, num_inference_steps, seed, randomize_seed):
|
| 18 |
"""Generate an image from the given prompt."""
|
| 19 |
+
print(prompt)
|
| 20 |
if randomize_seed:
|
| 21 |
seed = torch.randint(0, 2**32 - 1, (1,)).item()
|
| 22 |
|