Rubén Escobedo
commited on
Commit
•
cc69e60
1
Parent(s):
ea9face
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torchvision.transforms as transforms
|
|
4 |
import torch
|
5 |
|
6 |
# Cargamos el learner
|
7 |
-
learn =
|
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(),
|