khalidsaifullaah
commited on
Commit
·
cecbe0e
1
Parent(s):
573ac8e
ckpt_update:modelCW-epoch=59-val_loss=1.69-val_recall=0.79
Browse files- app.py +3 -0
- model.ckpt +2 -2
app.py
CHANGED
@@ -49,6 +49,9 @@ def pipeline(audio_file):
|
|
49 |
|
50 |
with torch.no_grad():
|
51 |
pred = torch.exp(classifier(processed_audio.unsqueeze(0)).squeeze()) # turning log_softmax into probabilities
|
|
|
|
|
|
|
52 |
|
53 |
return {labels[i]: float(pred[i]) for i in range(3)}
|
54 |
|
|
|
49 |
|
50 |
with torch.no_grad():
|
51 |
pred = torch.exp(classifier(processed_audio.unsqueeze(0)).squeeze()) # turning log_softmax into probabilities
|
52 |
+
|
53 |
+
print({labels[i]: float(pred[i]) for i in range(3)})
|
54 |
+
print(classifier(processed_audio.unsqueeze(0)).squeeze())
|
55 |
|
56 |
return {labels[i]: float(pred[i]) for i in range(3)}
|
57 |
|
model.ckpt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37a14cfc80ee22924fa02c29ab51aadb62d986000ce043ccdcd34a285d35c1ec
|
3 |
+
size 23819631
|