Hev832 commited on
Commit
c23cef7
·
verified ·
1 Parent(s): ef8c193

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -5,7 +5,7 @@ from TTS.api import TTS
5
  import os
6
  os.environ["COQUI_TOS_AGREED"] = "1"
7
 
8
- device = "cuda"
9
 
10
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
11
 
@@ -18,14 +18,7 @@ iface = gr.Interface(fn=clone,
18
  inputs=[gr.Textbox(label='Text'),gr.Audio(type='filepath', label='Voice reference audio file')],
19
  outputs=gr.Audio(type='filepath'),
20
  title='Voice Clone',
21
- description="""
22
- by [Tony Assi](https://www.tonyassi.com/)
23
-
24
- This space uses xtts_v2 model. Non-commercial use only. [Coqui Public Model License](https://coqui.ai/cpml)
25
-
26
- Please ❤️ this Space. <a href="mailto: [email protected]">Email me</a>.
27
- """,
28
- theme = gr.themes.Base(primary_hue="teal",secondary_hue="teal",neutral_hue="slate"),
29
  examples=[["Hey! It's me Dorthy, from the Wizard of Oz. Type in whatever you'd like me to say.","./audio/Wizard-of-Oz-Dorthy.wav"],
30
  ["It's me Vito Corleone, from the Godfather. Type in whatever you'd like me to say.","./audio/Godfather.wav"],
31
  ["Hey, it's me Paris Hilton. Type in whatever you'd like me to say.","./audio/Paris-Hilton.mp3"],
 
5
  import os
6
  os.environ["COQUI_TOS_AGREED"] = "1"
7
 
8
+ device = "cpu"
9
 
10
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
11
 
 
18
  inputs=[gr.Textbox(label='Text'),gr.Audio(type='filepath', label='Voice reference audio file')],
19
  outputs=gr.Audio(type='filepath'),
20
  title='Voice Clone',
21
+ theme = "Hev832/Applio",
 
 
 
 
 
 
 
22
  examples=[["Hey! It's me Dorthy, from the Wizard of Oz. Type in whatever you'd like me to say.","./audio/Wizard-of-Oz-Dorthy.wav"],
23
  ["It's me Vito Corleone, from the Godfather. Type in whatever you'd like me to say.","./audio/Godfather.wav"],
24
  ["Hey, it's me Paris Hilton. Type in whatever you'd like me to say.","./audio/Paris-Hilton.mp3"],