import traceback, sys, os
os.chdir("/models")
sys.path.insert(0, "/opt/qwen3-tts")
try:
    print("Importing proxy.DecoderProxy...", flush=True)
    from qwen3_tts_gguf.inference.proxy import DecoderProxy
    print(f"OK: {DecoderProxy}", flush=True)
except Exception as e:
    print(f"FAIL: {e}", flush=True)
    traceback.print_exc()

try:
    print("\nImporting engine directly...", flush=True)
    from qwen3_tts_gguf.inference.engine import TTSEngine
    print(f"OK: {TTSEngine}", flush=True)
except Exception as e:
    print(f"FAIL: {e}", flush=True)
    traceback.print_exc()
