jamino30 commited on
Commit
019e9ef
·
verified ·
1 Parent(s): 5eaebd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def generate_map(seed: int = None):
55
  if seed is None:
56
  seed = torch.randint(10000, (1,)).item()
57
  torch.manual_seed(seed)
58
- z = torch.randn(1, model.latent_dim).to(device)
59
  with torch.no_grad():
60
  output = model.decode(z)
61
  output = sample_with_temperature(output, temperature=3)[0].cpu().numpy()
 
55
  if seed is None:
56
  seed = torch.randint(10000, (1,)).item()
57
  torch.manual_seed(seed)
58
+ z = torch.randn(1, model.latent_dim).to("cpu")
59
  with torch.no_grad():
60
  output = model.decode(z)
61
  output = sample_with_temperature(output, temperature=3)[0].cpu().numpy()