Skip to content

Commit

Permalink
Fix typing in audio_utils.chroma_filter_bank (huggingface#35888)
Browse files Browse the repository at this point in the history
* Fix typing in audio_utils.chroma_filter_bank

* Apply make style

---------

Co-authored-by: Louis Groux <louis.cal.groux@gmail.com>
  • Loading branch information
CalOmnie and CalOmnie authored Jan 27, 2025
1 parent e57b459 commit cd6591b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/audio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def chroma_filter_bank(
sampling_rate: int,
tuning: float = 0.0,
power: Optional[float] = 2.0,
weighting_parameters: Optional[Tuple[float]] = (5.0, 2),
weighting_parameters: Optional[Tuple[float, float]] = (5.0, 2.0),
start_at_c_chroma: Optional[bool] = True,
):
"""
Expand All @@ -165,7 +165,7 @@ def chroma_filter_bank(
Tuning deviation from A440 in fractions of a chroma bin.
power (`float`, *optional*, defaults to 2.0):
If 12.0, normalizes each column with their L2 norm. If 1.0, normalizes each column with their L1 norm.
weighting_parameters (`Tuple[float]`, *optional*, defaults to `(5., 2.)`):
weighting_parameters (`Tuple[float, float]`, *optional*, defaults to `(5., 2.)`):
If specified, apply a Gaussian weighting parameterized by the first element of the tuple being the center and
the second element being the Gaussian half-width.
start_at_c_chroma (`float`, *optional*, defaults to `True`):
Expand Down

0 comments on commit cd6591b

Please sign in to comment.