Spaces:
Sleeping
Sleeping
IlayMalinyak
commited on
Commit
·
81f7a68
1
Parent(s):
76a1a7d
load on cpu
Browse files- tasks/audio.py +1 -1
tasks/audio.py
CHANGED
|
@@ -77,7 +77,7 @@ async def evaluate_audio(request: AudioEvaluationRequest):
|
|
| 77 |
|
| 78 |
model = CNNKan(model_args, conformer_args, kan_args.get_dict())
|
| 79 |
model = model.to(device)
|
| 80 |
-
state_dict = torch.load(data_args.checkpoint_path)
|
| 81 |
new_state_dict = OrderedDict()
|
| 82 |
for key, value in state_dict.items():
|
| 83 |
if key.startswith('module.'):
|
|
|
|
| 77 |
|
| 78 |
model = CNNKan(model_args, conformer_args, kan_args.get_dict())
|
| 79 |
model = model.to(device)
|
| 80 |
+
state_dict = torch.load(data_args.checkpoint_path, map_location=torch.device('cpu'))
|
| 81 |
new_state_dict = OrderedDict()
|
| 82 |
for key, value in state_dict.items():
|
| 83 |
if key.startswith('module.'):
|