Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ model.eval()
|
|
| 19 |
|
| 20 |
def predict(input_image):
|
| 21 |
with torch.no_grad():
|
| 22 |
-
output = model(input_image.unsqueeze(0))
|
| 23 |
output = output.squeeze(0).cpu().float()
|
| 24 |
return output[0]
|
| 25 |
|
|
|
|
| 19 |
|
| 20 |
def predict(input_image):
|
| 21 |
with torch.no_grad():
|
| 22 |
+
output = model(input_image.unsqueeze(0).to(model.device))
|
| 23 |
output = output.squeeze(0).cpu().float()
|
| 24 |
return output[0]
|
| 25 |
|