slplab commited on
Commit
a3bb507
1 Parent(s): 7d0efeb

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -16,7 +16,7 @@ class EndpointHandler:
16
  #processor = AutoProcessor.from_pretrained(path)
17
  #self.pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor.feature_extractor, feature_extractor=processor.feature_extractor)
18
  #feature_extractor = WhisperFeatureExtractor.from_pretrained('openai/whisper-large')
19
- self.pipe = pipeline(task='automatic-speech-recognition', model=path, device=)
20
 
21
 
22
 
 
16
  #processor = AutoProcessor.from_pretrained(path)
17
  #self.pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor.feature_extractor, feature_extractor=processor.feature_extractor)
18
  #feature_extractor = WhisperFeatureExtractor.from_pretrained('openai/whisper-large')
19
+ self.pipe = pipeline(task='automatic-speech-recognition', model=path)
20
 
21
 
22