jytole commited on
Commit
7fcf913
1 Parent(s): 3e59502

Cast n_candidates to int

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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