Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Thuillier authored and Victor Thuillier committed Oct 25, 2023
1 parent 60a209a commit 1abca80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def setup(self):
destination_folder = '../root/.cache/torch'
file_name = 'whisperx-vad-segmentation.bin'

os.makedirs(destination_folder, exist_ok=True)

source_file_path = os.path.join(source_folder, file_name)
if os.path.exists(source_file_path):
destination_file_path = os.path.join(destination_folder, file_name)
Expand Down

0 comments on commit 1abca80

Please sign in to comment.