update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ class CNN1DLSTMAudioClassifier(nn.Module):
|
|
69 |
num_class = 6
|
70 |
model = CNN1DLSTMAudioClassifier(num_class)
|
71 |
|
72 |
-
model.load_state_dict(torch.load("speech-emotion-recognition
|
73 |
model.eval()
|
74 |
|
75 |
def preprocess_single_audio(file_path, sample_rate=16000, n_mels=128, n_fft=2048, hop_length=512):
|
|
|
69 |
num_class = 6
|
70 |
model = CNN1DLSTMAudioClassifier(num_class)
|
71 |
|
72 |
+
model.load_state_dict(torch.load("speech-emotion-recognition-best-model.bin", weights_only=False))
|
73 |
model.eval()
|
74 |
|
75 |
def preprocess_single_audio(file_path, sample_rate=16000, n_mels=128, n_fft=2048, hop_length=512):
|