DGSpitzer commited on
Commit
130e9b1
1 Parent(s): 1b1c393

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- wav.export(mp3file_name, format="mp3")
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)