Spaces:
Build error
Build error
File size: 658 Bytes
e57f790 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from gradio_client import Client
from pathlib import Path
import subprocess
client = Client("https://balacoon-voice-conversion-service.hf.space/")
result = client.predict(
"/home/sjx/Common/vits/Real-Time-Voice-Cloning-master/demo_output_01.wav",
"/home/sjx/Common/vits/Real-Time-Voice-Cloning-master/demo_output_01.wav",
"/home/sjx/Common/vits/Real-Time-Voice-Cloning-master/1.wav",
fn_index=1
)
source_path = Path(result)
target_path = Path("./output/")
mv_command = ['mv', source_path, target_path]
try:
subprocess.run(mv_command, check=True)
print('Finishing!!!!')
except subprocess.CalledProcessError as e:
print('Error!!!!') |