huseinzol05 commited on
Commit
81947fa
1 Parent(s): fb9559e

use custom info

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,6 +20,7 @@ def tts(text, model, temperature, length_ratio):
20
  raise gr.Error('input text must longer than 0')
21
  global MODELS
22
  if model not in MODELS:
 
23
  MODELS[model] = malaya_speech.tts.vits(model=model)
24
 
25
  r = MODELS[model].predict(
@@ -47,5 +48,5 @@ demo = gr.Interface(
47
  title='End-to-End Malaysian TTS using VITS',
48
  )
49
 
50
- demo.launch(server_name='0.0.0.0')
51
 
20
  raise gr.Error('input text must longer than 0')
21
  global MODELS
22
  if model not in MODELS:
23
+ gr.Info(f'Downloading and caching {model}')
24
  MODELS[model] = malaya_speech.tts.vits(model=model)
25
 
26
  r = MODELS[model].predict(
48
  title='End-to-End Malaysian TTS using VITS',
49
  )
50
 
51
+ demo.queue().launch(server_name='0.0.0.0')
52