Spaces:
Running
Running
Indra
commited on
Update models/mhg_model/load.py
Browse files- models/mhg_model/load.py +1 -1
models/mhg_model/load.py
CHANGED
|
@@ -81,7 +81,7 @@ def load(model_name: str = "mhg_model/pickles/mhggnn_pretrained_model_0724_2023.
|
|
| 81 |
filename = "pytorch_model.bin" #"mhggnn_pretrained_model_0724_2023.pickle"
|
| 82 |
file_path = hf_hub_download(repo_id=repo_id, filename=filename)
|
| 83 |
with open(file_path, "rb") as f:
|
| 84 |
-
model_dict = torch.load(f)
|
| 85 |
return PretrainedModelWrapper(model_dict)
|
| 86 |
|
| 87 |
|
|
|
|
| 81 |
filename = "pytorch_model.bin" #"mhggnn_pretrained_model_0724_2023.pickle"
|
| 82 |
file_path = hf_hub_download(repo_id=repo_id, filename=filename)
|
| 83 |
with open(file_path, "rb") as f:
|
| 84 |
+
model_dict = torch.load(f, weights_only=False)
|
| 85 |
return PretrainedModelWrapper(model_dict)
|
| 86 |
|
| 87 |
|