Cast n_candidates to int
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def texttoaudio(prompt, neg_prompt, seed, inf_steps, guidance_scale, n_candidate
|
|
| 30 |
guidance_scale=guidance_scale,
|
| 31 |
audio_length_in_s=5.0,
|
| 32 |
generator=generator.manual_seed(int(seed)),
|
| 33 |
-
num_waveforms_per_prompt=n_candidates if n_candidates else 1,
|
| 34 |
)["audios"]
|
| 35 |
|
| 36 |
# save the audio sample as a .wav file
|
|
|
|
| 30 |
guidance_scale=guidance_scale,
|
| 31 |
audio_length_in_s=5.0,
|
| 32 |
generator=generator.manual_seed(int(seed)),
|
| 33 |
+
num_waveforms_per_prompt=int(n_candidates) if n_candidates else 1,
|
| 34 |
)["audios"]
|
| 35 |
|
| 36 |
# save the audio sample as a .wav file
|