TenzinGayche commited on
Commit
31ba694
1 Parent(s): 6212570

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -12,7 +12,7 @@ SAMPLE_RATE = 16000
12
  class EndpointHandler():
13
  def __init__(self, path=""):
14
  # load the model
15
- self.pipe = pipeline(model="TenzinGayche/whisper-small-3",device='cuda')
16
 
17
 
18
  def __call__(self, data: Dict[str, bytes]) -> Dict[str, str]:
 
12
  class EndpointHandler():
13
  def __init__(self, path=""):
14
  # load the model
15
+ self.pipe = pipeline(model="TenzinGayche/whisper-small-3",chunk_length_s=30,device='cuda')
16
 
17
 
18
  def __call__(self, data: Dict[str, bytes]) -> Dict[str, str]: