Spaces:
Running
Running
poemsforaphrodite
commited on
Commit
•
a65bab4
1
Parent(s):
aa14d70
Upload openvoice_app.py with huggingface_hub
Browse files- 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,
|
44 |
-
|
|
|
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
|