import pathlib

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