(tokens: list[int])
| 220 | |
| 221 | |
| 222 | def token_window(tokens: list[int]) -> dict[str, Any]: |
| 223 | return { |
| 224 | "head": tokens[:128], |
| 225 | "tail": tokens[-32:], |
| 226 | "count": len(tokens), |
| 227 | } |
| 228 | |
| 229 | |
| 230 | def extract_audio(outputs: Any, index: int = 0) -> np.ndarray: |