Skip to content

Commit

Permalink
Fix: target_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Nov 3, 2023
1 parent 47fc048 commit aaacc31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bert_vits2/text/bert_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def _download_model(self, bert_model_name):

}
urls = DOWNLOAD_PATHS[bert_model_name]
target_path = os.path.join(self.bert_model_path[bert_model_name], "pytorch_model.bin"),

target_path = os.path.join(self.bert_model_path[bert_model_name], "pytorch_model.bin")
if not os.path.exists(target_path):
success, message = download_and_verify(urls, target_path, None)
if not success:
Expand Down

0 comments on commit aaacc31

Please sign in to comment.