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