Spaces:
Runtime error
Runtime error
nguyenvulebinh
commited on
Commit
β’
60684ee
1
Parent(s):
a85beea
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def speech_file_to_array_fn(path, max_seconds=10):
|
|
58 |
def inference(audio):
|
59 |
# read in sound file
|
60 |
# load dummy dataset and read soundfiles
|
61 |
-
ds = speech_file_to_array_fn(audio)
|
62 |
# infer model
|
63 |
input_values = processor(
|
64 |
ds["speech"],
|
|
|
58 |
def inference(audio):
|
59 |
# read in sound file
|
60 |
# load dummy dataset and read soundfiles
|
61 |
+
ds = speech_file_to_array_fn(audio.name)
|
62 |
# infer model
|
63 |
input_values = processor(
|
64 |
ds["speech"],
|