TenzinGayche commited on
Commit
e205326
1 Parent(s): 6fa2846

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -27,7 +27,7 @@ class EndpointHandler():
27
  inputs = data.pop("inputs", data)
28
  audio_nparray = ffmpeg_read(inputs, SAMPLE_RATE)
29
  audio_tensor= torch.from_numpy(audio_nparray)
30
- text = pipe(audio_tensor)["text"]
31
 
32
  # run inference pipeline
33
  result = converter.toUnicode(text)
 
27
  inputs = data.pop("inputs", data)
28
  audio_nparray = ffmpeg_read(inputs, SAMPLE_RATE)
29
  audio_tensor= torch.from_numpy(audio_nparray)
30
+ text = self.pipe(audio_tensor)["text"]
31
 
32
  # run inference pipeline
33
  result = converter.toUnicode(text)