Duplicated from Clebersla/RVC_V2_Huggingface_Version
77731d1
1
2
3
4
5
6
7
8
9
10
function withAuthorizationPrefix(token) { if (token.split(/\./).length === 3) { return `bearer ${token}`; } return `token ${token}`; } export { withAuthorizationPrefix };