1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-07 10:10:23 +08:00

feat(rvcmd): add option --update

This commit is contained in:
源文雨
2024-04-23 03:16:27 +09:00
parent deca566ab2
commit 659f5d25b0
4 changed files with 27 additions and 19 deletions

View File

@@ -156,11 +156,12 @@ if __name__ == "__main__":
tmp = os.path.join(now_dir, "TEMP")
shutil.rmtree(tmp, ignore_errors=True)
os.makedirs(tmp, exist_ok=True)
if not check_all_assets():
download_all_assets(tmpdir=tmp)
if not check_all_assets():
printt("counld not satisfy all assets needed.")
exit(1)
if not check_all_assets(update=self.config.update):
if self.config.update:
download_all_assets(tmpdir=tmp)
if not check_all_assets(update=False):
printt("counld not satisfy all assets needed.")
exit(1)
def load(self):
try: