Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
yonigozlan committed Sep 19, 2024
1 parent bec9a31 commit 6eb5bbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/transformers/processing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,21 +1011,21 @@ def __call__(
Then, if we call the processor as:
```python
images = [...]
processor("What is common in these images?", images, "arg_value_1", "arg_value_2")
processor("What is common in these images?", images, arg_value_1, arg_value_2)
```
Then, this method will return:
```python
{
"arg_name_1": "arg_value_1",
"arg_name_2": "arg_value_2",
"arg_name_1": arg_value_1,
"arg_name_2": arg_value_2,
}
```
which we could then pass as kwargs to `self._merge_kwargs`
"""
if len(args):
warnings.warn(
"Passing positional arguments to the processor call is now deprecated and will be disallowed in future versions. "
"Passing positional arguments to the processor call is now deprecated and will be disallowed in v4.47. "
"Please pass all arguments as keyword arguments."
)
if len(args) > len(self.optional_call_args):
Expand Down

0 comments on commit 6eb5bbb

Please sign in to comment.