noumanjavaid commited on
Commit
8a2c015
·
verified ·
1 Parent(s): 266f5ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,7 +20,8 @@ chair="./GEN_chair.pt"
20
 
21
  device='cuda' if torch.cuda.is_available() else 'cpu'
22
 
23
- ckpt_airplane = torch.load(airplane,map_location=torch.device(device))
 
24
  ckpt_chair = torch.load(chair,map_location=torch.device(device))
25
 
26
  def seed_all(seed):
 
20
 
21
  device='cuda' if torch.cuda.is_available() else 'cpu'
22
 
23
+
24
+ ckpt_airplane = torch.load(airplane, map_location=torch.device(device), weights_only=False)
25
  ckpt_chair = torch.load(chair,map_location=torch.device(device))
26
 
27
  def seed_all(seed):