Tousifahamed commited on
Commit
adc670e
·
verified ·
1 Parent(s): 632a181

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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