submaster/whisper_project/run_xtts_clone.py

27 lines
640 B
Python

#!/usr/bin/env python3
"""Shim: run_xtts_clone
This script delegates to the example `examples/run_xtts_clone.py` or
prints guidance if not available. Kept for backward compatibility.
"""
from __future__ import annotations
import subprocess
import sys
def main():
script = "examples/run_xtts_clone.py"
try:
subprocess.run([sys.executable, script], check=True)
except Exception as e:
print("Error ejecutando run_xtts_clone ejemplo:", e, file=sys.stderr)
print("Ejecuta 'python examples/run_xtts_clone.py' para la demo.")
return 1
return 0
if __name__ == "__main__":
sys.exit(main())