Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ model = TTR({"img_size": [32, 128],
|
|
| 28 |
})
|
| 29 |
model.load_state_dict(torch.load(model_path, map_location=device)["model"])
|
| 30 |
model.eval()
|
| 31 |
-
model = model.to(
|
| 32 |
|
| 33 |
preprocess = getTransforms()
|
| 34 |
|
|
|
|
| 28 |
})
|
| 29 |
model.load_state_dict(torch.load(model_path, map_location=device)["model"])
|
| 30 |
model.eval()
|
| 31 |
+
model = model.to(device)
|
| 32 |
|
| 33 |
preprocess = getTransforms()
|
| 34 |
|