zen21 commited on
Commit
f4d1685
1 Parent(s): 6a52406

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ class UNet(nn.Module):
119
  x = self.up3(x, x1, t)
120
  output = self.outc(x)
121
  return output
122
- device = 'cuda' if torch.cuda.is_available() else 'cpu'
123
  model = UNet(device = device).to(device)
124
  model.load_state_dict(torch.load('Model_Saved_States/diffusion_64.pth'))
125
  img_size = 64
 
119
  x = self.up3(x, x1, t)
120
  output = self.outc(x)
121
  return output
122
+ device = 'cpu'
123
  model = UNet(device = device).to(device)
124
  model.load_state_dict(torch.load('Model_Saved_States/diffusion_64.pth'))
125
  img_size = 64