Spaces:
Build error
Build error
Update soni_translate/mdx_net.py
Browse files366 unmodified lines367368369370371372366 unmodified linesprocessor_num = -1m_threads = 1model_hash = MDX.get_hash(model_path)mp = model_params.get(model_hash)model = MDXModel(366 unmodified lines367368369370371372373374375376377378379380381382383384366 unmodified linesprocessor_num = -1m_threads = 1if os.environ.get("ZERO_GPU") == "TRUE":duration = librosa.get_duration(filename=filename)if duration < 60:passelif duration >= 60 and duration <= 900:m_threads = 4elif duration > 900:m_threads = 16logger.info(f"MDX-NET Threads: {m_threads}, duration {duration}")model_hash = MDX.get_hash(model_path)mp = model_params.get(model_hash)model = MDXModel(
soni_translate/mdx_net.py+12