LN1996 commited on
Commit
8f1e7c2
·
1 Parent(s): 02a9724

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)