import subprocess import sys import os import os # 获取当前路径 current_path = os.getcwd() # 列出当前路径下的文件和一级目录 for item in os.listdir(current_path): item_path = os.path.join(current_path, item) if os.path.isfile(item_path): print(f"File: {item}") elif os.path.isdir(item_path): print(f"Directory: {item}") # 运行子进程,将 stdout 和 stderr 直接输出到当前 Shell subprocess.run(["python", "tools/webui.py", "--llama-checkpoint-path", "checkpoints/fish-speech-1.4", "--decoder-checkpoint-path", "checkpoints/fish-speech-1.4/firefly-gan-vq-fsq-8x1024-21hz-generator.pth"], stdout=sys.stdout, stderr=sys.stderr)