From 2b507da7da68f6baf00e5b0437d2d08e2d4f1246 Mon Sep 17 00:00:00 2001 From: 34j <55338215+34j@users.noreply.github.com> Date: Sun, 7 May 2023 15:06:41 +0900 Subject: [PATCH] fix(__main__): replace pyinputplus with normal input (#587) --- src/so_vits_svc_fork/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/so_vits_svc_fork/__main__.py b/src/so_vits_svc_fork/__main__.py index 87bc47d1..d12560ff 100644 --- a/src/so_vits_svc_fork/__main__.py +++ b/src/so_vits_svc_fork/__main__.py @@ -7,7 +7,6 @@ from typing import Literal import click -import pyinputplus as pyip import torch from so_vits_svc_fork import __version__ @@ -784,7 +783,8 @@ def clean(): import shutil folders = ["dataset", "filelists", "logs"] - if pyip.inputYesNo(f"Are you sure you want to delete files in {folders}?") == "yes": + # if pyip.inputYesNo(f"Are you sure you want to delete files in {folders}?") == "yes": + if input("Are you sure you want to delete files in {folders}?") in ["yes", "y"]: for folder in folders: if Path(folder).exists(): shutil.rmtree(folder)