Audio Classification
Transformers
Safetensors
English
voiceshield
whisper
voice-security
malicious-detection
speech
custom_code
Instructions to use Emvo-ai/voiceSHIELD-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Emvo-ai/voiceSHIELD-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="Emvo-ai/voiceSHIELD-small", trust_remote_code=True)# Load model directly from transformers import AutoModelForAudioClassification model = AutoModelForAudioClassification.from_pretrained("Emvo-ai/voiceSHIELD-small", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +4 -2
config.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"architectures": ["VoiceShieldForAudioClassification"],
|
| 3 |
"auto_map": {
|
| 4 |
"AutoConfig": "modeling_voiceshield.VoiceShieldConfig",
|
| 5 |
-
"
|
| 6 |
},
|
| 7 |
"base_model": "openai/whisper-small",
|
| 8 |
"model_type": "voiceshield",
|
|
@@ -14,5 +14,7 @@
|
|
| 14 |
"label2id": {
|
| 15 |
"safe": 0,
|
| 16 |
"malicious": 1
|
| 17 |
-
}
|
|
|
|
|
|
|
| 18 |
}
|
|
|
|
| 2 |
"architectures": ["VoiceShieldForAudioClassification"],
|
| 3 |
"auto_map": {
|
| 4 |
"AutoConfig": "modeling_voiceshield.VoiceShieldConfig",
|
| 5 |
+
"AutoModelForAudioClassification": "modeling_voiceshield.VoiceShieldForAudioClassification"
|
| 6 |
},
|
| 7 |
"base_model": "openai/whisper-small",
|
| 8 |
"model_type": "voiceshield",
|
|
|
|
| 14 |
"label2id": {
|
| 15 |
"safe": 0,
|
| 16 |
"malicious": 1
|
| 17 |
+
},
|
| 18 |
+
"torch_dtype": "float32",
|
| 19 |
+
"transformers_version": "4.36.0"
|
| 20 |
}
|