Spaces:
Runtime error
Runtime error
Commit ·
02ca130
1
Parent(s): 3549461
new model trained on larger dataset
Browse files
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 = "
|
| 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()
|