antoniomae commited on
Commit
1849416
1 Parent(s): 8ff9b79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -35,8 +35,8 @@ st.title(APP_NAME)
35
  st.image(APP_LOGO, use_column_width=True)
36
  st.markdown(APP_DESCRIPTION)
37
 
38
- input_wav = st.file_uploader("Upload a MP3 file with your voice", type=["wav"])
39
- clone_wav = st.file_uploader("Upload a MP3 file with voice to clone", type=["wav"])
40
 
41
  if input_mp3 and clone_mp3:
42
  progress_bar = st.progress(0)
@@ -52,7 +52,7 @@ if input_mp3 and clone_mp3:
52
  update_progress(0, 'Loading TTS model...')
53
  api = TTS("voice_conversion_models/multilingual/vctk/freevc24")
54
 
55
- update_progress(50, 'Generating mp3...')
56
  api.voice_conversion_to_file(
57
  source_mp3=temp_input_file.name,
58
  target_mp3=temp_clone_file.name,
@@ -69,4 +69,4 @@ if input_mp3 and clone_mp3:
69
 
70
  st.audio(audio_bytes, format='audio/mp3')
71
 
72
- st.download_button('Download mp3', data=audio_bytes, file_name='output.mp3')
 
35
  st.image(APP_LOGO, use_column_width=True)
36
  st.markdown(APP_DESCRIPTION)
37
 
38
+ input_wav = st.file_uploader("Upload a MP3 file with your voice", type=["mp3"])
39
+ clone_wav = st.file_uploader("Upload a MP3 file with voice to clone", type=["mp3"])
40
 
41
  if input_mp3 and clone_mp3:
42
  progress_bar = st.progress(0)
 
52
  update_progress(0, 'Loading TTS model...')
53
  api = TTS("voice_conversion_models/multilingual/vctk/freevc24")
54
 
55
+ update_progress(50, 'Generating wav...')
56
  api.voice_conversion_to_file(
57
  source_mp3=temp_input_file.name,
58
  target_mp3=temp_clone_file.name,
 
69
 
70
  st.audio(audio_bytes, format='audio/mp3')
71
 
72
+ st.download_button('Download wav', data=audio_bytes, file_name='output.wav')