Tousifahamed commited on
Commit
7b27885
·
verified ·
1 Parent(s): adc670e

Upload app.py

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