import pathlib

# Find files with official_api_correction in their name in the root dir
root = pathlib.Path('/opt/ai-avatar-demo')
for p in root.glob('*r1_qwen3_tts_official_api_correction*'):
    target = root / '控3.2Ubuntu24_RD.gate7m_a_r1_qwen3_tts_official_api_correction_base_readiness_recon.result.yaml.txt'
    p.rename(target)
    print(f"Renamed {p.name} to {target.name}")
