Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ class CustomViTModel(nn.Module):
|
|
35 |
|
36 |
# Load the trained model
|
37 |
model = CustomViTModel()
|
38 |
-
model.load_state_dict(torch.load('
|
39 |
model.to(device)
|
40 |
model.eval()
|
41 |
|
|
|
35 |
|
36 |
# Load the trained model
|
37 |
model = CustomViTModel()
|
38 |
+
model.load_state_dict(torch.load('final_ms_model_2classes_vit_base_384_bce.pth', map_location=device))
|
39 |
model.to(device)
|
40 |
model.eval()
|
41 |
|