Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ orientation_labels = {
|
|
59 |
|
60 |
model_race = RaceClassifier(n_classes=4)
|
61 |
model_race.to(device)
|
62 |
-
model_race.load_state_dict(torch.load('
|
63 |
|
64 |
model_age = RaceClassifier(n_classes=3)
|
65 |
model_age.to(device)
|
|
|
59 |
|
60 |
model_race = RaceClassifier(n_classes=4)
|
61 |
model_race.to(device)
|
62 |
+
model_race.load_state_dict(torch.load('best_model_race_last.pt', map_location=torch.device('cpu')))
|
63 |
|
64 |
model_age = RaceClassifier(n_classes=3)
|
65 |
model_age.to(device)
|