slplab commited on
Commit
2f68faf
1 Parent(s): 109cd63

Update handler.py

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