Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import AutoProcessor, ClapModel
|
|
9 |
# make Space compatible with CPU duplicates
|
10 |
if torch.cuda.is_available():
|
11 |
device = "cuda"
|
12 |
-
torch_dtype = torch.
|
13 |
else:
|
14 |
device = "cpu"
|
15 |
torch_dtype = torch.float32
|
|
|
9 |
# make Space compatible with CPU duplicates
|
10 |
if torch.cuda.is_available():
|
11 |
device = "cuda"
|
12 |
+
torch_dtype = torch.float32
|
13 |
else:
|
14 |
device = "cpu"
|
15 |
torch_dtype = torch.float32
|