Commit Β·
ec8ba93
1
Parent(s): 579fccc
add download model for hf space
Browse files3 unmodified lines456789105 unmodified lines161718192021223 unmodified linesimport timeimport sysfrom huggingface_hub import hf_hub_downloadcurrent_dir = os.path.dirname(os.path.abspath(__file__))sys.path.append(current_dir)5 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)3 unmodified lines456789105 unmodified lines161718192021223 unmodified linesimport timeimport sysfrom huggingface_hub import snapshot_downloadcurrent_dir = os.path.dirname(os.path.abspath(__file__))sys.path.append(current_dir)5 unmodified linesi18n = I18nAuto(language="zh_CN")MODE = 'local'snapshot_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+2-2