jhj0517 commited on
Commit
f4a88cd
·
1 Parent(s): 306617d

fix spaces bug

Browse files
modules/whisper/faster_whisper_inference.py CHANGED
@@ -161,6 +161,8 @@ class FasterWhisperInference(WhisperBase):
161
 
162
  @staticmethod
163
  def download_model(model_size: str, model_dir: str):
 
 
164
  faster_whisper.download_model(
165
  size_or_id=model_size,
166
  cache_dir=model_dir
 
161
 
162
  @staticmethod
163
  def download_model(model_size: str, model_dir: str):
164
+ print(f"\nDownloading \"{model_size}\" to \"{model_dir}\"..\n")
165
+ os.makedirs(model_dir, exist_ok=True)
166
  faster_whisper.download_model(
167
  size_or_id=model_size,
168
  cache_dir=model_dir