nguyenvulebinh commited on
Commit
60684ee
β€’
1 Parent(s): a85beea

Update app.py

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