VoiceCloning-be commited on
Commit
890a397
1 Parent(s): 1af80aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
17
  # Init TTS
18
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
19
 
20
- @spaces.GPU(duration=90)
21
  def voice_clone(text: str, speaker_wav: str, language: str):
22
  # Run TTS
23
  print("Speaker wav:", speaker_wav)
@@ -30,6 +30,6 @@ iface = gr.Interface(fn=voice_clone,
30
  gr.Radio(['nl', 'fr', 'en', 'zh-cn', 'ja', 'de', 'it', 'pt', 'pl', 'tr', 'ko', 'cs', 'ar', 'es', 'hu'], label="language"),
31
  ],
32
  outputs=gr.Audio(type="filepath", label="Generated audio file"),
33
- title="Voice Cloning")
34
 
35
  iface.launch()
 
17
  # Init TTS
18
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
19
 
20
+ @spaces.GPU(duration=180)
21
  def voice_clone(text: str, speaker_wav: str, language: str):
22
  # Run TTS
23
  print("Speaker wav:", speaker_wav)
 
30
  gr.Radio(['nl', 'fr', 'en', 'zh-cn', 'ja', 'de', 'it', 'pt', 'pl', 'tr', 'ko', 'cs', 'ar', 'es', 'hu'], label="language"),
31
  ],
32
  outputs=gr.Audio(type="filepath", label="Generated audio file"),
33
+ title="")
34
 
35
  iface.launch()