Adal Abilbekov
commited on
Commit
·
ae5b658
1
Parent(s):
fd98460
final commit 3
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from torch import nn
|
|
7 |
from model import CNNEmotinoalClassifier
|
8 |
|
9 |
model = CNNEmotinoalClassifier()
|
10 |
-
model.load_state_dict(torch.load('./cnn_class_17.pt'))
|
11 |
model.eval()
|
12 |
|
13 |
to_melspec = torchaudio.transforms.MelSpectrogram(
|
|
|
7 |
from model import CNNEmotinoalClassifier
|
8 |
|
9 |
model = CNNEmotinoalClassifier()
|
10 |
+
model.load_state_dict(torch.load('./cnn_class_17.pt', map_location=torch.device('cpu')))
|
11 |
model.eval()
|
12 |
|
13 |
to_melspec = torchaudio.transforms.MelSpectrogram(
|