cfgpp commited on
Commit
b516bb7
·
verified ·
1 Parent(s): 3367ea9

Update model_utils.py

Browse files
Files changed (1) hide show
  1. 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(repo_id, filename, device):
31
- model_path = hf_hub_download(repo_id=repo_id, filename=filename)
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