Fix slow CI by pinning resampy (#18077)

* Fix slow CI by pinning resampy

* Actually put it in the speech dependencies
This commit is contained in:
Sylvain Gugger
2022-07-08 10:51:24 -04:00
committed by GitHub
parent de46cde14b
commit 9bd3968509
2 changed files with 3 additions and 1 deletions

View File

@@ -143,6 +143,7 @@ _deps = [
"ray[tune]",
"regex!=2019.12.17",
"requests",
"resampy<0.3.1",
"rjieba",
"rouge-score",
"sacrebleu>=1.4.12,<2.0.0",
@@ -268,7 +269,7 @@ extras["sigopt"] = deps_list("sigopt")
extras["integrations"] = extras["optuna"] + extras["ray"] + extras["sigopt"]
extras["serving"] = deps_list("pydantic", "uvicorn", "fastapi", "starlette")
extras["audio"] = deps_list("librosa", "pyctcdecode", "phonemizer")
extras["audio"] = deps_list("librosa", "pyctcdecode", "phonemizer", "resampy") # resampy can be removed once unpinned.
# `pip install ".[speech]"` is deprecated and `pip install ".[torch-speech]"` should be used instead
extras["speech"] = deps_list("torchaudio") + extras["audio"]
extras["torch-speech"] = deps_list("torchaudio") + extras["audio"]