File size: 407 Bytes
96b8a02 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/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)
|