moro23 commited on
Commit
ef13868
1 Parent(s): 9f517b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ model_name = "moro23/wav2vec-large-xls-r-300-ha-colab_4"
17
 
18
  def load_data(input_file):
19
 
20
- sample_rate, speech = librosa.load(input_file)
21
  #make it 1-D
22
  if len(speech.shape) > 1:
23
  speech = speech[:,0] + speech[:,1]
 
17
 
18
  def load_data(input_file):
19
 
20
+ sample_rate, speech = librosa.load(str(input_file))
21
  #make it 1-D
22
  if len(speech.shape) > 1:
23
  speech = speech[:,0] + speech[:,1]