Fixed ref to "text" variable
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def texttoaudio(prompt, neg_prompt, seed, inf_steps, guidance_scale, n_candidate
|
|
36 |
# save the audio sample as a .wav file
|
37 |
# scipy.io.wavfile.write("output.wav", rate=16000, data=audio)
|
38 |
if waveforms.shape[0] > 1:
|
39 |
-
waveform = score_waveforms(
|
40 |
else:
|
41 |
waveform = waveforms[0]
|
42 |
|
|
|
36 |
# save the audio sample as a .wav file
|
37 |
# scipy.io.wavfile.write("output.wav", rate=16000, data=audio)
|
38 |
if waveforms.shape[0] > 1:
|
39 |
+
waveform = score_waveforms(prompt, waveforms)
|
40 |
else:
|
41 |
waveform = waveforms[0]
|
42 |
|