yousef4 commited on
Commit
d346e6e
·
verified ·
1 Parent(s): 36eeb68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -8
app.py CHANGED
@@ -23,12 +23,20 @@ def voice_clone(text: str, speaker_wav: str, language: str):
23
  tts.tts_to_file(text=text, speaker_wav=speaker_wav, language=language, file_path="output.wav")
24
  return "output.wav"
25
 
26
- iface = gr.Interface(fn=voice_clone, theme="Nymbo/Nymbo_Theme",
27
- inputs=[gr.Textbox(lines=2, placeholder="Enter the text...", label="Text"),
28
- gr.Audio(type="filepath", label="Upload audio file"),
29
- gr.Radio(['ru', 'en', 'zh-cn', 'ja', 'de', 'fr', 'it', 'pt', 'pl', 'tr', 'ko', 'nl', 'cs', 'ar', 'es', 'hu'], label="language"),
30
- ],
31
- outputs=gr.Audio(type="filepath", label="Generated audio file"),
32
- title="Voice Cloning")
 
 
 
 
 
 
 
 
33
 
34
- iface.launch()
 
23
  tts.tts_to_file(text=text, speaker_wav=speaker_wav, language=language, file_path="output.wav")
24
  return "output.wav"
25
 
26
+ iface = gr.Interface(
27
+ fn=voice_clone,
28
+ theme="Nymbo/Nymbo_Theme",
29
+ inputs=[
30
+ gr.Textbox(lines=2, placeholder="Enter the text...", label="Text"),
31
+ gr.Audio(type="filepath", label="Upload audio file"),
32
+ gr.Radio(['ru', 'en', 'zh-cn', 'ja', 'de', 'fr', 'it', 'pt', 'pl', 'tr', 'ko', 'nl', 'cs', 'ar', 'es', 'hu'], label="language"),
33
+ ],
34
+ outputs=gr.Audio(type="filepath", label="Generated audio file"),
35
+ title="Voice Cloning",
36
+ description=("Disclaimer: This tool is intended for educational purposes only, and is not intended to be used for any illegal or unethical purpose. "
37
+ "Each user assumes full responsibility for how they use the tool, and neither its developers nor its providers assume any liability for any "
38
+ "inappropriate use or any consequences that may result. By using the Tool, you acknowledge that you understand these Terms and agree to comply "
39
+ "with them. (Translated with DeepL.com)")
40
+ )
41
 
42
+ iface.launch()