Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def load_quantized_model(checkpoint_path):
|
|
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
|
|
|
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
|