Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,9 @@ num_classes = len(list(index_to_species.keys()))
|
|
24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
|
26 |
# Load the model
|
27 |
-
linear_model_name = '
|
28 |
classify_model = models.LinearClassifier(input_dim=768, output_dim=num_classes)
|
29 |
-
classify_model.load_state_dict(torch.load(
|
30 |
|
31 |
k = 5
|
32 |
|
|
|
24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
|
26 |
# Load the model
|
27 |
+
linear_model_name = 'linear_model.pt'
|
28 |
classify_model = models.LinearClassifier(input_dim=768, output_dim=num_classes)
|
29 |
+
classify_model.load_state_dict(torch.load(linear_model_name))
|
30 |
|
31 |
k = 5
|
32 |
|