Create app.py
Browse files
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")
|