Plachta commited on
Commit
1e529fc
·
verified ·
1 Parent(s): e448a2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ model = VALLE(
62
  prepend_bos=True,
63
  num_quantizers=NUM_QUANTIZERS,
64
  ).to(device)
65
- checkpoint = torch.load("./epoch-10.pt", map_location='cpu')
66
  missing_keys, unexpected_keys = model.load_state_dict(
67
  checkpoint["model"], strict=True
68
  )
 
62
  prepend_bos=True,
63
  num_quantizers=NUM_QUANTIZERS,
64
  ).to(device)
65
+ checkpoint = torch.load("./epoch-10.pt", map_location='cpu', weights_only=True)
66
  missing_keys, unexpected_keys = model.load_state_dict(
67
  checkpoint["model"], strict=True
68
  )