Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files119 unmodified lines12012112212312412512624 unmodified lines151152153154155156157158159160119 unmodified linesf0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_keyf0_file=None ,f0_method="rmvpe",file_index=None, # Assuming file_index_path corresponds to file_indexindex_rate=0.75,filter_radius=3,resample_sr=0,24 unmodified linesprint(f"Converting...")audio, sr = librosa.load(input_audio_path, sr=16000, mono=True)f0_up_key = int(f0_up_key)times = [0, 0, 0]if hubert_model == None:load_hubert()if_f0 = 1audio_opt = vc.pipeline(hubert_model,119 unmodified lines12012112212312412512624 unmodified lines151152153154155156157158159160161162119 unmodified linesf0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_keyf0_file=None ,f0_method="rmvpe",file_index="model.index", # Assuming file_index_path corresponds to file_indexindex_rate=0.75,filter_radius=3,resample_sr=0,24 unmodified linesprint(f"Converting...")audio, sr = librosa.load(input_audio_path, sr=16000, mono=True)print(f"found audio ")f0_up_key = int(f0_up_key)times = [0, 0, 0]if hubert_model == None:load_hubert()print("loaded hubert")if_f0 = 1audio_opt = vc.pipeline(hubert_model,
infertest.py+3-1