Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def inference(img, task, run_on):
|
|
41 |
img = img.resize((width,height), Image.ANTIALIAS)
|
42 |
|
43 |
|
44 |
-
model = torch.jit.load('
|
45 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
46 |
model = model.to(device)
|
47 |
model.eval()
|
|
|
41 |
img = img.resize((width,height), Image.ANTIALIAS)
|
42 |
|
43 |
|
44 |
+
model = torch.jit.load('deshabby.pth')
|
45 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
46 |
model = model.to(device)
|
47 |
model.eval()
|