Spaces:
Running on Zero
Running on Zero
Update src/rvc.py
Browse files108 unmodified lines10911011111211311458 unmodified lines173174175176108 unmodified linesdef load_hubert(device, is_half, model_path):from fairseq import checkpoint_utilsmodels, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task([model_path], suffix='', )hubert = models[0]58 unmodified lines)wavfile.write(output_path, tgt_sr, audio_opt)working_path = output_path108 unmodified lines10911011111211311411511658 unmodified lines175176177178108 unmodified linesdef load_hubert(device, is_half, model_path):from fairseq import checkpoint_utilsimport fairseqtorch.serialization.add_safe_globals([fairseq.data.dictionary.Dictionary])models, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task([model_path], suffix='', )hubert = models[0]58 unmodified lines)wavfile.write(output_path, tgt_sr, audio_opt)working_path = output_path
src/rvc.py+3-1