Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -2,7 +2,7 @@ from typing import Dict
|
|
2 |
from faster_whisper import WhisperModel
|
3 |
|
4 |
class EndpointHandler:
|
5 |
-
def __init__(self):
|
6 |
# Initialize WhisperModel; assume that "large-v2" model files are in /repository
|
7 |
self.model = WhisperModel("large-v2", device="cpu")
|
8 |
|
|
|
2 |
from faster_whisper import WhisperModel
|
3 |
|
4 |
class EndpointHandler:
|
5 |
+
def __init__(self, *args, **kwargs):
|
6 |
# Initialize WhisperModel; assume that "large-v2" model files are in /repository
|
7 |
self.model = WhisperModel("large-v2", device="cpu")
|
8 |
|