Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ audio_gen = gr.Blocks.load(name="spaces/haoheliu/audioldm-text-to-audio-generati
|
|
7 |
|
8 |
def infer(image_input):
|
9 |
cap = caption(image_input, fn_index=0)
|
10 |
-
sound = audio_gen(cap,
|
11 |
FILETOCONVERT = AudioFileClip(sound)
|
12 |
FILETOCONVERT.write_audiofile("audio.wav")
|
13 |
FILETOCONVERT.close()
|
|
|
7 |
|
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()
|