#!/usr/bin/env python3 """Find which inference/ files import torch and sounddevice.""" import subprocess, sys cmd = """ grep -rn 'import torch\\|import sounddevice' /opt/qwen3-tts/qwen3_tts_gguf/inference/ 2>/dev/null | grep -v __pycache__ """ result = subprocess.run( ["docker", "run", "--rm", "--entrypoint", "bash", "sudx/qwen3-tts:latest", "-c", cmd], capture_output=True, text=True ) print(result.stdout)