Rubén Escobedo commited on
Commit
cc69e60
1 Parent(s): ea9face

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import torchvision.transforms as transforms
4
  import torch
5
 
6
  # Cargamos el learner
7
- learn = load_model('best_model.pth')
8
 
9
  def transform_image(image, device):
10
  my_transforms = transforms.Compose([transforms.ToTensor(),
 
4
  import torch
5
 
6
  # Cargamos el learner
7
+ learn = Learner.load('best_model')
8
 
9
  def transform_image(image, device):
10
  my_transforms = transforms.Compose([transforms.ToTensor(),