poemsforaphrodite commited on
Commit
a65bab4
1 Parent(s): aa14d70

Upload openvoice_app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. openvoice_app.py +3 -2
openvoice_app.py CHANGED
@@ -40,8 +40,9 @@ def predict(prompt, style, audio_file_pth):
40
  )
41
  #text should be prompt
42
  audio = client.generate(text=prompt, voice=voice)
43
- save(audio, "result.mp3")
44
- save_path="result.mp3"
 
45
  return text_hint, save_path, audio_file_pth
46
 
47
  # Gradio interface setup
 
40
  )
41
  #text should be prompt
42
  audio = client.generate(text=prompt, voice=voice)
43
+ save(audio, f'{output_dir}/output.wav')
44
+
45
+ save_path = f'{output_dir}/output.wav'
46
  return text_hint, save_path, audio_file_pth
47
 
48
  # Gradio interface setup