Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def get_music(prompt, musicAI_indx):
|
|
109 |
#Convert to mp3
|
110 |
mp3file_name = "audio.mp3"
|
111 |
wavfile = AudioSegment.from_wav("output.wav")
|
112 |
-
|
113 |
return spec, mp3file_name
|
114 |
else:
|
115 |
result = text_to_music(prompt, fn_index=0)
|
|
|
109 |
#Convert to mp3
|
110 |
mp3file_name = "audio.mp3"
|
111 |
wavfile = AudioSegment.from_wav("output.wav")
|
112 |
+
wavfile.export(mp3file_name, format="mp3")
|
113 |
return spec, mp3file_name
|
114 |
else:
|
115 |
result = text_to_music(prompt, fn_index=0)
|