Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ transformer=transforms.Compose([transforms.Resize((480,640)),
|
|
75 |
img=transformer(img).unsqueeze(0)
|
76 |
img=img.cpu()
|
77 |
|
78 |
-
|
79 |
|
80 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
81 |
model = model.cpu()
|
|
|
75 |
img=transformer(img).unsqueeze(0)
|
76 |
img=img.cpu()
|
77 |
|
78 |
+
model=torch.jit.trace(aux, (img))
|
79 |
|
80 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
81 |
model = model.cpu()
|