Skip to content

Commit

Permalink
Merge pull request #89 from ROBERT-MCDOWELL/v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewThomasson authored Dec 17, 2024
2 parents f1d3da5 + 2b5766e commit 8545f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ def extract_custom_model(f_path, dest_dir, session):
raise DependencyError(e)

def check_model_files(model_dir):
existing_files = ['config.json', 'model.pth', 'vocab.json']
missing_files = [file for file in model_dir if file not in existing_files]
existing_files = ['config.json', 'model.pth', 'vocab.json', 'ref.wav']
missing_files = [file for file in listdir(model_dir) if not file in existing_files]
if missing_files:
return False
return model_dir
Expand Down

0 comments on commit 8545f02

Please sign in to comment.