fffiloni commited on
Commit
b5dc05a
1 Parent(s): 51aa8a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def predict(prompt, duration):
15
  if duration == 5:
16
  width_duration=512
17
  else :
18
- width_duration = int(512 + ((duration-5) * 128))
19
  spec = pipe(prompt, height=512, width=width_duration).images[0]
20
  print(spec)
21
  wav = wav_bytes_from_spectrogram_image(spec)
 
15
  if duration == 5:
16
  width_duration=512
17
  else :
18
+ width_duration = 512 + ((int(duration)-5) * 128)
19
  spec = pipe(prompt, height=512, width=width_duration).images[0]
20
  print(spec)
21
  wav = wav_bytes_from_spectrogram_image(spec)