archivartaunik commited on
Commit
0350865
·
verified ·
1 Parent(s): 7c6c5f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ config.load_json(config_file)
37
  XTTS_MODEL = Xtts.init_from_config(config)
38
  XTTS_MODEL.load_checkpoint(config, checkpoint_path=checkpoint_file, vocab_path=vocab_file, use_deepspeed=False)
39
 
40
- @spaces.GPU(duration=30)
41
  def text_to_speech(belarusian_story, lang="be", speaker_audio_file=None):
42
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
43
  XTTS_MODEL.to(device)
 
37
  XTTS_MODEL = Xtts.init_from_config(config)
38
  XTTS_MODEL.load_checkpoint(config, checkpoint_path=checkpoint_file, vocab_path=vocab_file, use_deepspeed=False)
39
 
40
+ @spaces.GPU(duration=60)
41
  def text_to_speech(belarusian_story, lang="be", speaker_audio_file=None):
42
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
43
  XTTS_MODEL.to(device)