Update model_utils.py
Browse files- model_utils.py +2 -2
model_utils.py
CHANGED
|
@@ -27,8 +27,8 @@ class CheXNet(nn.Module):
|
|
| 27 |
from huggingface_hub import hf_hub_download
|
| 28 |
import torch
|
| 29 |
|
| 30 |
-
def load_model(
|
| 31 |
-
model_path = hf_hub_download(repo_id=
|
| 32 |
model = torch.load(model_path, map_location=device)
|
| 33 |
model.eval()
|
| 34 |
return model
|
|
|
|
| 27 |
from huggingface_hub import hf_hub_download
|
| 28 |
import torch
|
| 29 |
|
| 30 |
+
def load_model(device):
|
| 31 |
+
model_path = hf_hub_download(repo_id="cfgpp/danny_net", filename="dannynet.pth")
|
| 32 |
model = torch.load(model_path, map_location=device)
|
| 33 |
model.eval()
|
| 34 |
return model
|