Hi which version of torch are you using here https://huggingface.co/spaces/ysharma/Make_Custom_Voices_With_KokoroTTS/tree/main
I always having this error
models.py", line 365, in build_model
for key, state_dict in torch.load(path, map_location='cuda', weights_only=False)['net'].items():
File ".pyenv/versions/3.10.16/lib/python3.10/site-packages/torch/serialization.py", line 1040, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File ".pyenv/versions/3.10.16/lib/python3.10/site-packages/torch/serialization.py", line 1262, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.