jhj0517 commited on
Commit
8926685
1 Parent(s): 91dee77
modules/faster_whisper_inference.py CHANGED
@@ -24,6 +24,7 @@ class FasterWhisperInference(BaseInterface):
24
  def __init__(self):
25
  super().__init__()
26
  self.model_dir = os.path.join("models", "Whisper", "faster-whisper")
 
27
  self.current_model_size = None
28
  self.model = None
29
  self.model_paths = self.get_model_paths()
 
24
  def __init__(self):
25
  super().__init__()
26
  self.model_dir = os.path.join("models", "Whisper", "faster-whisper")
27
+ os.makedirs(self.model_dir, exist_ok=True)
28
  self.current_model_size = None
29
  self.model = None
30
  self.model_paths = self.get_model_paths()