seddiktrk commited on
Commit
ce151ef
·
verified ·
1 Parent(s): 4a09c08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -172,7 +172,7 @@ path = "model_epoch_1.pt"
172
  state_dict = torch.load(path)
173
 
174
  # Apply the weights to the model
175
- CliPGPT.load_state_dict(state_dict)
176
  CliPGPT.to(device)
177
 
178
  print('importing CLIP')
 
172
  state_dict = torch.load(path)
173
 
174
  # Apply the weights to the model
175
+ CliPGPT.load_state_dict(state_dict,map_location=torch.device('cpu') )
176
  CliPGPT.to(device)
177
 
178
  print('importing CLIP')