robocan commited on
Commit
14085cb
·
verified ·
1 Parent(s): 7ee2dc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ local_dir = snapshot_download(
28
 
29
  device = 'cpu'
30
  le = LabelEncoder()
31
- le = joblib.load("le.gz")
32
  len_classes = len(le.classes_) + 1
33
 
34
  class ModelPre(torch.nn.Module):
@@ -49,7 +49,7 @@ class ModelPre(torch.nn.Module):
49
  # Load the pretrained model
50
  model = ModelPre()
51
 
52
- model_w = torch.load("GeoG.pth", map_location=torch.device(device))
53
  model.load_state_dict(model_w['model'])
54
 
55
  cmp = transforms.Compose([
 
28
 
29
  device = 'cpu'
30
  le = LabelEncoder()
31
+ le = joblib.load("SVD/le.gz")
32
  len_classes = len(le.classes_) + 1
33
 
34
  class ModelPre(torch.nn.Module):
 
49
  # Load the pretrained model
50
  model = ModelPre()
51
 
52
+ model_w = torch.load("SVD/GeoG.pth", map_location=torch.device(device))
53
  model.load_state_dict(model_w['model'])
54
 
55
  cmp = transforms.Compose([