deepfake / app.py
KKsora's picture
Create app.py
5dd385f verified
raw
history blame contribute delete
440 Bytes
# 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")