nijisakai commited on
Commit
a920567
1 Parent(s): b50b0cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,7 +137,7 @@ def download_youtube_clip(
137
  return None
138
 
139
  def predict(
140
- speaker=speakers[speakers.index(speaker)],
141
  audio,
142
  transpose: int = 0,
143
  auto_predict_f0: bool = False,
@@ -153,7 +153,7 @@ def predict(
153
  audio, _ = librosa.load(audio, sr=model.target_sample, duration=duration_limit)
154
  audio = model.infer_silence(
155
  audio.astype(np.float32),
156
- speaker=speakers[speakers.index(speaker)],
157
  transpose=transpose,
158
  auto_predict_f0=auto_predict_f0,
159
  cluster_infer_ratio=cluster_infer_ratio,
 
137
  return None
138
 
139
  def predict(
140
+ speaker,
141
  audio,
142
  transpose: int = 0,
143
  auto_predict_f0: bool = False,
 
153
  audio, _ = librosa.load(audio, sr=model.target_sample, duration=duration_limit)
154
  audio = model.infer_silence(
155
  audio.astype(np.float32),
156
+ speaker=speaker,
157
  transpose=transpose,
158
  auto_predict_f0=auto_predict_f0,
159
  cluster_infer_ratio=cluster_infer_ratio,