#!/usr/bin/env python3 from typing import List from pathlib import Path BASE_URL = "https://huggingface.co/csukuangfj/kaldifeat/resolve/main/" def generate_url(files: List[str]) -> List[str]: ans = [] base = BASE_URL for f in files: ans.append(base + str(f)) return ans def get_all_files(d: str, suffix: str) -> List[str]: return sorted(Path(d).glob(suffix), reverse=True)