File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,6 @@ def main(args):
431431 title = "Seed Voice Conversion" ,
432432 examples = examples ,
433433 cache_examples = False ,
434- share = args .share ,
435434 ).launch (share = args .share ,)
436435
437436if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -185,7 +185,8 @@ def load_models(args):
185185 from modules .hifigan .f0_predictor import ConvRNNF0Predictor
186186 hift_config = yaml .safe_load (open ('configs/hifigan.yml' , 'r' ))
187187 hift_gen = HiFTGenerator (** hift_config ['hift' ], f0_predictor = ConvRNNF0Predictor (** hift_config ['f0_predictor' ]))
188- hift_gen .load_state_dict (torch .load (hift_config ['pretrained_model_path' ], map_location = 'cpu' ))
188+ hift_path = load_custom_model_from_hf ("FunAudioLLM/CosyVoice-300M" , 'hift.pt' , None )
189+ hift_gen .load_state_dict (torch .load (hift_path , map_location = 'cpu' ))
189190 hift_gen .eval ()
190191 hift_gen .to (device )
191192 vocoder_fn = hift_gen
You can’t perform that action at this time.
0 commit comments