Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]
|