Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,8 @@ def load_quantized_model(checkpoint_path):
|
|
35 |
|
36 |
# Load the checkpoint
|
37 |
checkpoint = torch.load(checkpoint_path, map_location="cpu")
|
38 |
-
model.load_state_dict(checkpoint["model_state_dict"])
|
|
|
39 |
|
40 |
model.eval()
|
41 |
return model
|
|
|
35 |
|
36 |
# Load the checkpoint
|
37 |
checkpoint = torch.load(checkpoint_path, map_location="cpu")
|
38 |
+
# model.load_state_dict(checkpoint["model_state_dict"])
|
39 |
+
model.load_state_dict(checkpoint
|
40 |
|
41 |
model.eval()
|
42 |
return model
|