Update app.py
Browse files
app.py
CHANGED
@@ -232,7 +232,7 @@ def generate_with_prompt_style_guidance(prompt, style, seed=42):
|
|
232 |
|
233 |
# Prep latents
|
234 |
latents = torch.randn(
|
235 |
-
(batch_size, unet.in_channels, height // 8, width // 8),
|
236 |
generator=generator,
|
237 |
)
|
238 |
latents = latents.to(torch_device)
|
|
|
232 |
|
233 |
# Prep latents
|
234 |
latents = torch.randn(
|
235 |
+
(batch_size, unet.config.in_channels, height // 8, width // 8),
|
236 |
generator=generator,
|
237 |
)
|
238 |
latents = latents.to(torch_device)
|