amildravid4292 commited on
Commit
8c3366f
·
verified ·
1 Parent(s): 67694b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -23,6 +23,7 @@ import spaces
23
 
24
 
25
  models_path = snapshot_download(repo_id="Snapchat/w2w")
 
26
 
27
  mean = torch.load(f"{models_path}/files/mean.pt", map_location=torch.device('cpu')).bfloat16().to(device)
28
  std = torch.load(f"{models_path}/files/std.pt", map_location=torch.device('cpu')).bfloat16().to(device)
 
23
 
24
 
25
  models_path = snapshot_download(repo_id="Snapchat/w2w")
26
+ device = "cuda"
27
 
28
  mean = torch.load(f"{models_path}/files/mean.pt", map_location=torch.device('cpu')).bfloat16().to(device)
29
  std = torch.load(f"{models_path}/files/std.pt", map_location=torch.device('cpu')).bfloat16().to(device)