Spaces:
No application file
No application file
Commit
·
f052324
1
Parent(s):
ecc0a09
Upload predict.py
Browse files- 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 =
|
| 55 |
# Put the path to save the cloned speaker to here.
|
| 56 |
out_file = 'speaker.npz'
|
| 57 |
|
| 58 |
-
wav, sr = torchaudio.load(
|
| 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 |
|