Spaces:
Sleeping
Sleeping
Remove direct cuda reference
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def load_model():
|
|
36 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
37 |
model = torch.load(ckpt_path, map_location=device)
|
38 |
model = disable_dropout(model)
|
39 |
-
model.to(
|
40 |
model.eval()
|
41 |
return model
|
42 |
|
|
|
36 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
37 |
model = torch.load(ckpt_path, map_location=device)
|
38 |
model = disable_dropout(model)
|
39 |
+
model.to(device)
|
40 |
model.eval()
|
41 |
return model
|
42 |
|