File size: 704 Bytes
8598b7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)