miguelcarv commited on
Commit
7ddbe26
1 Parent(s): c40944a

now added zerogpu

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ if config["first_level"]:
45
 
46
  print("Created model")
47
 
48
- DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
49
  model_path = get_model_path(HF_MODEL)
50
  model.load_state_dict(torch.load(model_path, map_location="cpu"))
51
  model = model.to(DEVICE)
 
45
 
46
  print("Created model")
47
 
48
+ DEVICE = 'cuda'
49
  model_path = get_model_path(HF_MODEL)
50
  model.load_state_dict(torch.load(model_path, map_location="cpu"))
51
  model = model.to(DEVICE)