File size: 440 Bytes
5dd385f |
1 2 3 4 5 6 7 8 9 10 |
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="motheecreator/Deepfake-audio-detection")
# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("motheecreator/Deepfake-audio-detection")
model = AutoModelForAudioClassification.from_pretrained("motheecreator/Deepfake-audio-detection") |