Skip to content

Commit

Permalink
fix(__main__): replace pyinputplus with normal input (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
34j authored May 7, 2023
1 parent e94ac6b commit 2b507da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/so_vits_svc_fork/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import Literal

import click
import pyinputplus as pyip
import torch

from so_vits_svc_fork import __version__
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2b507da

Please sign in to comment.