Update handler.py
Browse files- 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
|