kemuririn commited on
Commit Β·
fe90cff
1
Parent(s): 33551a3
debug for hf space
Browse files17 unmodified lines18192021222324252627282930313233343543 unmodified lines798081828384858617 unmodified linesi18n = I18nAuto(language="zh_CN")MODE = 'local'snapshot_download("IndexTeam/Index-TTS",local_dir="checkpoints",)tts = Noneos.makedirs("outputs/tasks",exist_ok=True)os.makedirs("prompts",exist_ok=True)@spaces.GPUdef init():global ttsif not tts:tts = IndexTTS(model_dir="checkpoints", cfg_path="checkpoints/config.yaml")return tts@spaces.GPUdef infer(voice, text,output_path=None):if not tts:43 unmodified linesdef main():global ttstts = init()tts.load_normalizer()demo.queue(20)demo.launch(server_name="0.0.0.0")17 unmodified lines181920212223242526272843 unmodified lines72737475767717 unmodified linesi18n = I18nAuto(language="zh_CN")MODE = 'local'snapshot_download("IndexTeam/Index-TTS",local_dir="checkpoints",)tts = IndexTTS(model_dir="checkpoints", cfg_path="checkpoints/config.yaml")os.makedirs("outputs/tasks",exist_ok=True)os.makedirs("prompts",exist_ok=True)@spaces.GPUdef infer(voice, text,output_path=None):if not tts:43 unmodified linesdef main():tts.load_normalizer()demo.queue(20)demo.launch(server_name="0.0.0.0")
webui.py+1-10