lucio commited on
Commit
52b5634
1 Parent(s): a38efd0
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def client(audio_data: np.array, sample_rate: int, use_scorer=False):
26
 
27
  out_prob, score, index, text_lab = lang_classifier.classify_batch(
28
  lang_classifier.audio_normalizer(
29
- torch.tensor(output_audio.getvalue()),
30
  sample_rate
31
  )
32
  )
 
26
 
27
  out_prob, score, index, text_lab = lang_classifier.classify_batch(
28
  lang_classifier.audio_normalizer(
29
+ torchàudio.load(output_audio),
30
  sample_rate
31
  )
32
  )