Skip to content

Commit c83ae7a

Browse files
committed
fix app_svc.py and real-time-gui.py
1 parent 2830a42 commit c83ae7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app_svc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

437436
if __name__ == "__main__":

real-time-gui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)