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