owiedotch commited on
Commit
d549862
1 Parent(s): bcbb2f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -123,7 +123,8 @@ def process(
123
  shape = (1, 4, height // 8, width // 8)
124
  x_T = torch.randn(shape, device=device, dtype=torch.float32)
125
  # Create unconditional embeddings for classifier-free guidance
126
- uc = model.get_learned_conditioning([""])
 
127
 
128
  if not tile_diffusion:
129
  samples = sampler.sample_ccsr(
 
123
  shape = (1, 4, height // 8, width // 8)
124
  x_T = torch.randn(shape, device=device, dtype=torch.float32)
125
  # Create unconditional embeddings for classifier-free guidance
126
+ c = model.get_learned_conditioning([positive_prompt])
127
+ uc = model.get_learned_conditioning([negative_prompt])
128
 
129
  if not tile_diffusion:
130
  samples = sampler.sample_ccsr(