jameshuntercarter commited on
Commit
f052324
1 Parent(s): ecc0a09

Upload predict.py

Browse files
Files changed (1) hide show
  1. predict.py +2 -2
predict.py CHANGED
@@ -51,11 +51,11 @@ class Predictor(BasePredictor):
51
  print('Downloaded and loaded models!')
52
  # PREDICT
53
  # Put the path of the speaker you want to use here.
54
- wav_file = 'sample-speaker.wav'
55
  # Put the path to save the cloned speaker to here.
56
  out_file = 'speaker.npz'
57
 
58
- wav, sr = torchaudio.load(wav_file)
59
 
60
  wav_hubert = wav.to(device)
61
 
 
51
  print('Downloaded and loaded models!')
52
  # PREDICT
53
  # Put the path of the speaker you want to use here.
54
+ wav_file = speaker
55
  # Put the path to save the cloned speaker to here.
56
  out_file = 'speaker.npz'
57
 
58
+ wav, sr = torchaudio.load(speaker)
59
 
60
  wav_hubert = wav.to(device)
61