Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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()
|