Ruurd commited on
Commit
23cc752
·
1 Parent(s): 183a6ee

Remove direct cuda reference

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("cuda")
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