fffiloni commited on
Commit
ea1af2f
β€’
1 Parent(s): 3efd05b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -8,6 +8,7 @@ audio_gen = gr.Blocks.load(name="spaces/haoheliu/audioldm-text-to-audio-generati
8
  def infer(image_input):
9
  cap = caption(image_input, fn_index=0)
10
  sound = audio_gen(cap, 10, 2.5, 45, 3, fn_index=0)
 
11
  FILETOCONVERT = AudioFileClip(sound)
12
  FILETOCONVERT.write_audiofile("audio.wav")
13
  FILETOCONVERT.close()
 
8
  def infer(image_input):
9
  cap = caption(image_input, fn_index=0)
10
  sound = audio_gen(cap, 10, 2.5, 45, 3, fn_index=0)
11
+ time.sleep(2)
12
  FILETOCONVERT = AudioFileClip(sound)
13
  FILETOCONVERT.write_audiofile("audio.wav")
14
  FILETOCONVERT.close()