ParthBarot commited on
Commit
dd34e93
·
verified ·
1 Parent(s): 0a56869

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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