Update handler.py
Browse files- handler.py +1 -2
handler.py
CHANGED
|
@@ -11,8 +11,7 @@ SAMPLE_RATE = 16000
|
|
| 11 |
class EndpointHandler():
|
| 12 |
def __init__(self, path=""):
|
| 13 |
# load the model
|
| 14 |
-
|
| 15 |
-
self.model = load_model(model_path)
|
| 16 |
|
| 17 |
def __call__(self, data: Dict[str, bytes]) -> Dict[str, str]:
|
| 18 |
"""
|
|
|
|
| 11 |
class EndpointHandler():
|
| 12 |
def __init__(self, path=""):
|
| 13 |
# load the model
|
| 14 |
+
self.model = whisper.load_model("large-v3")
|
|
|
|
| 15 |
|
| 16 |
def __call__(self, data: Dict[str, bytes]) -> Dict[str, str]:
|
| 17 |
"""
|