submaster/whisper_project/run_xtts_clone.py

29 lines
702 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:
import logging
logger = logging.getLogger(__name__)
logger.exception("Error ejecutando run_xtts_clone ejemplo: %s", e)
logger.info("Ejecuta examples/run_xtts_clone.py para la demo.")
return 1
return 0
if __name__ == "__main__":
sys.exit(main())