Update utils.py
Browse filestesting on solubility_model
utils.py
CHANGED
|
@@ -6,7 +6,7 @@ def validate_sequence(sequence):
|
|
| 6 |
|
| 7 |
def load_model():
|
| 8 |
# Assuming the model is a simple PyTorch model, adjust the path as needed
|
| 9 |
-
model = torch.load('
|
| 10 |
model.eval()
|
| 11 |
return model
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
def load_model():
|
| 8 |
# Assuming the model is a simple PyTorch model, adjust the path as needed
|
| 9 |
+
model = torch.load('solubility_model.pth', map_location=torch.device('cpu'))
|
| 10 |
model.eval()
|
| 11 |
return model
|
| 12 |
|