Update app.py
Browse files
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')
|