Commit Β·
579fccc
1
Parent(s): d381252
add download model for hf space
Browse files2 unmodified lines3456784 unmodified lines1314151617182 unmodified linesimport threadingimport timeimport syscurrent_dir = os.path.dirname(os.path.abspath(__file__))sys.path.append(current_dir)sys.path.append(os.path.join(current_dir, "indextts"))4 unmodified linesi18n = I18nAuto(language="zh_CN")MODE = 'local'tts = IndexTTS(model_dir="checkpoints",cfg_path="checkpoints/config.yaml")os.makedirs("outputs/tasks",exist_ok=True)2 unmodified lines345678910114 unmodified lines161718192021222 unmodified linesimport threadingimport timeimport sysfrom huggingface_hub import hf_hub_downloadcurrent_dir = os.path.dirname(os.path.abspath(__file__))sys.path.append(current_dir)sys.path.append(os.path.join(current_dir, "indextts"))4 unmodified linesi18n = I18nAuto(language="zh_CN")MODE = 'local'hf_hub_download("IndexTeam/IndexTTS",local_dir="checkpoints")tts = IndexTTS(model_dir="checkpoints",cfg_path="checkpoints/config.yaml")os.makedirs("outputs/tasks",exist_ok=True)
webui.py+4