Spaces:
Sleeping
Sleeping
Update js/app.py
Browse files96 unmodified lines979899100101102220 unmodified lines32332432532696 unmodified lines"""global _modelif _model is None:_model = get_model(MODEL_NAME)_model.eval()# CPU-only inference — Spaces free tier has no GPU.220 unmodified linesmedia_type="audio/wav",filename=f"{stem}.wav",)96 unmodified lines979899100101102103104220 unmodified lines32532632796 unmodified lines"""global _modelif _model is None:# Optimize CPU threads for Hugging Face Spaces (2 vCPUs)torch.set_num_threads(2)_model = get_model(MODEL_NAME)_model.eval()# CPU-only inference — Spaces free tier has no GPU.220 unmodified linesmedia_type="audio/wav",filename=f"{stem}.wav",)
js/app.py+2-1