Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,12 @@ pipe.unet.load_attn_procs(
|
|
| 42 |
weight_name="pytorch_custom_diffusion_weights.bin"
|
| 43 |
)
|
| 44 |
|
|
|
|
|
|
|
| 45 |
def generate(prompt, steps, guidance):
|
| 46 |
|
|
|
|
|
|
|
| 47 |
image = pipe(
|
| 48 |
prompt,
|
| 49 |
num_inference_steps=steps,
|
|
@@ -51,6 +55,8 @@ def generate(prompt, steps, guidance):
|
|
| 51 |
eta=1
|
| 52 |
).images[0]
|
| 53 |
|
|
|
|
|
|
|
| 54 |
return image
|
| 55 |
|
| 56 |
|
|
|
|
| 42 |
weight_name="pytorch_custom_diffusion_weights.bin"
|
| 43 |
)
|
| 44 |
|
| 45 |
+
print("Pipeline loaded")
|
| 46 |
+
|
| 47 |
def generate(prompt, steps, guidance):
|
| 48 |
|
| 49 |
+
print("Generating...")
|
| 50 |
+
|
| 51 |
image = pipe(
|
| 52 |
prompt,
|
| 53 |
num_inference_steps=steps,
|
|
|
|
| 55 |
eta=1
|
| 56 |
).images[0]
|
| 57 |
|
| 58 |
+
print("Done")
|
| 59 |
+
|
| 60 |
return image
|
| 61 |
|
| 62 |
|