srd4 commited on
Commit
ea6e5c3
·
verified ·
1 Parent(s): cf9a3bd

Update handler.py

Browse files
Files changed (1) hide show
  1. 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