gonzalocordova commited on
Commit
02ca130
·
1 Parent(s): 3549461

new model trained on larger dataset

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ token = "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"
8
 
9
  # Download model from HuggingFace Hub and load it with PyTorch
10
  REPO_ID = "gonzalocordova/DistractionDetectorCNN"
11
- FILENAME = "model_with_extended_dataset_resnet50_2023-04-20_11-24-17.pth"
12
  model_pth = hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="model", use_auth_token=token)
13
  model = torch.load(model_pth, map_location=torch.device('cpu'))
14
  model.eval()
 
8
 
9
  # Download model from HuggingFace Hub and load it with PyTorch
10
  REPO_ID = "gonzalocordova/DistractionDetectorCNN"
11
+ FILENAME = "resnet50_xlarge_resnet50_2023-05-19_21-41-02.pth"
12
  model_pth = hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="model", use_auth_token=token)
13
  model = torch.load(model_pth, map_location=torch.device('cpu'))
14
  model.eval()