Rubén Escobedo
commited on
Commit
•
a4759a0
1
Parent(s):
7c7e9b1
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import gradio as gr
|
|
3 |
import torchvision.transforms as transforms
|
4 |
import torch
|
5 |
|
6 |
-
|
|
|
7 |
|
8 |
def transform_image(image, device):
|
9 |
my_transforms = transforms.Compose([transforms.ToTensor(),
|
|
|
3 |
import torchvision.transforms as transforms
|
4 |
import torch
|
5 |
|
6 |
+
# Cargamos el modelo
|
7 |
+
learn = load_learner('export.pkl')
|
8 |
|
9 |
def transform_image(image, device):
|
10 |
my_transforms = transforms.Compose([transforms.ToTensor(),
|