Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,8 @@ audio_model = None
|
|
| 12 |
def download_models():
|
| 13 |
global audio_model
|
| 14 |
print("Downloading models...")
|
| 15 |
-
# Download and load the audio model
|
| 16 |
-
audio_model = pipeline("audio-classification", model="MelodyMachine/Deepfake-audio-detection-V2")
|
| 17 |
print("Model downloaded and ready to use.")
|
| 18 |
|
| 19 |
# Download model when the server starts
|
|
|
|
| 12 |
def download_models():
|
| 13 |
global audio_model
|
| 14 |
print("Downloading models...")
|
| 15 |
+
# Download and load the audio model with padding enabled
|
| 16 |
+
audio_model = pipeline("audio-classification", model="MelodyMachine/Deepfake-audio-detection-V2", padding=True)
|
| 17 |
print("Model downloaded and ready to use.")
|
| 18 |
|
| 19 |
# Download model when the server starts
|