TenzinGayche commited on
Commit
bee4bab
1 Parent(s): 3863607

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -64,6 +64,7 @@ class EndpointHandler():
64
 
65
 
66
  # process input
 
67
 
68
  if len(text.strip()) == 0:
69
  return (16000, np.zeros(0).astype(np.int16))
 
64
 
65
 
66
  # process input
67
+ text = data.get("inputs", None)
68
 
69
  if len(text.strip()) == 0:
70
  return (16000, np.zeros(0).astype(np.int16))