kevinwang676 commited on
Commit
024f64b
1 Parent(s): 2d16d89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -66,7 +66,9 @@ urllib.request.urlretrieve("https://download.openxlab.org.cn/models/Kevin676/rvc
66
 
67
  pattern_zip = r"/([^/]+)\.zip$"
68
 
 
69
  #os.system("pip install fairseq")
 
70
  from fairseq import checkpoint_utils
71
 
72
  global hubert_model
@@ -81,6 +83,11 @@ if config.is_half:
81
  else:
82
  hubert_model = hubert_model.float()
83
  hubert_model.eval()
 
 
 
 
 
84
 
85
  def get_file_name(url):
86
  match = re.search(pattern_zip, url)
 
66
 
67
  pattern_zip = r"/([^/]+)\.zip$"
68
 
69
+
70
  #os.system("pip install fairseq")
71
+ '''
72
  from fairseq import checkpoint_utils
73
 
74
  global hubert_model
 
83
  else:
84
  hubert_model = hubert_model.float()
85
  hubert_model.eval()
86
+ '''
87
+
88
+ from infer_rvc_python.main import load_hu_bert
89
+
90
+ load_hu_bert(config, "hubert_base.pt")
91
 
92
  def get_file_name(url):
93
  match = re.search(pattern_zip, url)