S-Fry commited on
Commit
60a5b62
1 Parent(s): 109fb39

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -23,7 +23,7 @@ class EndpointHandler():
23
  audio_tensor = torch.from_numpy(audio_nparray)
24
 
25
  prediction = pipe(audio_nparray, return_timestamps=True)
26
- return {"text": prediction[0]["transcription"]}
27
 
28
  # we can also return timestamps for the predictions
29
  #prediction = pipe(sample, return_timestamps=True)["chunks"]
 
23
  audio_tensor = torch.from_numpy(audio_nparray)
24
 
25
  prediction = pipe(audio_nparray, return_timestamps=True)
26
+ return {"text": prediction[0]}
27
 
28
  # we can also return timestamps for the predictions
29
  #prediction = pipe(sample, return_timestamps=True)["chunks"]