AamerAkhter commited on
Commit
607ef73
·
verified ·
1 Parent(s): b58d57e

Upload preload.py

Browse files
Files changed (1) hide show
  1. preload.py +5 -0
preload.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from TTS.utils.manage import ModelManager
2
+
3
+ # Downloads and caches the model ahead of time
4
+ model_manager = ModelManager()
5
+ model_path, config_path, model_item = model_manager.download_model("tts_models/en/ljspeech/tacotron2-DDC")