Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,8 @@ def classify_audio(audio):
|
|
53 |
prediction = "Not Spoof : High chances of original voice"
|
54 |
else:
|
55 |
prediction = "Spoof : Possible voice cloning"
|
56 |
-
|
|
|
57 |
median_human_voice_range = -65
|
58 |
diff_decibels = abs(median_decibels - median_human_voice_range)
|
59 |
if diff_decibels<3 and y_pred_classes[0] == 0 :
|
|
|
53 |
prediction = "Not Spoof : High chances of original voice"
|
54 |
else:
|
55 |
prediction = "Spoof : Possible voice cloning"
|
56 |
+
|
57 |
+
median_decibels = np.median(mel_spectrogram)
|
58 |
median_human_voice_range = -65
|
59 |
diff_decibels = abs(median_decibels - median_human_voice_range)
|
60 |
if diff_decibels<3 and y_pred_classes[0] == 0 :
|