Spaces:
Configuration error
Configuration error
Commit
·
dbc81ba
1
Parent(s):
13f898f
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ import torchcrepe
|
|
| 11 |
from infer import *
|
| 12 |
import logging
|
| 13 |
from infer_tools.infer_tool import *
|
| 14 |
-
map_location=torch.device(
|
|
|
|
| 15 |
##EDIT FOR CPU
|
| 16 |
# Open the file and read it into a string
|
| 17 |
with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py") as f:
|
|
|
|
| 11 |
from infer import *
|
| 12 |
import logging
|
| 13 |
from infer_tools.infer_tool import *
|
| 14 |
+
map_location = torch.device("cpu")
|
| 15 |
+
|
| 16 |
##EDIT FOR CPU
|
| 17 |
# Open the file and read it into a string
|
| 18 |
with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py") as f:
|