KKsora commited on
Commit
5dd385f
·
verified ·
1 Parent(s): 6a3bbca

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("audio-classification", model="motheecreator/Deepfake-audio-detection")
5
+
6
+ # Load model directly
7
+ from transformers import AutoProcessor, AutoModelForAudioClassification
8
+
9
+ processor = AutoProcessor.from_pretrained("motheecreator/Deepfake-audio-detection")
10
+ model = AutoModelForAudioClassification.from_pretrained("motheecreator/Deepfake-audio-detection")