English
music
music-captioning
ivillar commited on
Commit
ef418fe
·
1 Parent(s): 2f127e5

Add os import

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -4,6 +4,7 @@ from utils.audio_utils import load_audio, STR_CH_FIRST
4
  from typing import Dict, List, Any
5
  import numpy as np
6
  import librosa
 
7
 
8
  def preprocess_audio(audio_signal, sr, duration=10, target_sr=16000):
9
  n_samples = int(duration * target_sr)
 
4
  from typing import Dict, List, Any
5
  import numpy as np
6
  import librosa
7
+ import os
8
 
9
  def preprocess_audio(audio_signal, sr, duration=10, target_sr=16000):
10
  n_samples = int(duration * target_sr)