|
import os |
|
import subprocess |
|
import sys |
|
|
|
|
|
def init(): |
|
process = subprocess.Popen(""" |
|
bash run.sh |
|
""", stdout=subprocess.PIPE, shell=True) |
|
while True: |
|
output = process.stdout.readline().decode() |
|
if output == '' and process.poll() is not None: |
|
break |
|
if output: |
|
print(output.strip()) |
|
|
|
|
|
return_code = process.poll() |
|
print(f"Command exited with return code {return_code}") |
|
|
|
init() |
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "SuTTS/test"))) |
|
|
|
|
|
print(sys.path) |
|
|
|
from sovits_gradio import VitsGradio |
|
grVits = VitsGradio() |
|
grVits.Vits.launch(debug=True) |
|
|