Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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)
|