Spaces:
Sleeping
Sleeping
Update detector.py
Browse files- detector.py +9 -3
detector.py
CHANGED
|
@@ -55,10 +55,16 @@ except ImportError:
|
|
| 55 |
TORCH_OK = False
|
| 56 |
|
| 57 |
|
| 58 |
-
# Ensemble members.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
MODEL_IDS = [
|
| 60 |
"garystafford/wav2vec2-deepfake-voice-detector", # modern commercial TTS
|
| 61 |
-
"MelodyMachine/Deepfake-audio-detection-V2", # broader/legacy coverage, fast
|
| 62 |
]
|
| 63 |
|
| 64 |
|
|
@@ -291,4 +297,4 @@ class VocalGuardDetector:
|
|
| 291 |
out.append("✅ Strong natural human-speech markers")
|
| 292 |
else:
|
| 293 |
out.append("✅ Natural human-speech markers present")
|
| 294 |
-
return out
|
|
|
|
| 55 |
TORCH_OK = False
|
| 56 |
|
| 57 |
|
| 58 |
+
# Ensemble members. MelodyMachine/Deepfake-audio-detection-V2 was tried here
|
| 59 |
+
# and removed: real deploy logs showed it outputting near-binary values
|
| 60 |
+
# (~0.9999 or ~0.000017, nothing in between) that stayed IDENTICAL across
|
| 61 |
+
# different windows of the same clip regardless of content — a sign it's
|
| 62 |
+
# reacting to format/encoding rather than speech content. Combined with
|
| 63 |
+
# max-fusion, one bad spike from it was enough to flip a correct "Human"
|
| 64 |
+
# verdict to a false "AI Generated". Back to a single model until there's
|
| 65 |
+
# real evidence a second one helps rather than hurts.
|
| 66 |
MODEL_IDS = [
|
| 67 |
"garystafford/wav2vec2-deepfake-voice-detector", # modern commercial TTS
|
|
|
|
| 68 |
]
|
| 69 |
|
| 70 |
|
|
|
|
| 297 |
out.append("✅ Strong natural human-speech markers")
|
| 298 |
else:
|
| 299 |
out.append("✅ Natural human-speech markers present")
|
| 300 |
+
return out
|