Skip to content

Commit

Permalink
pylints
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshghorse committed Jul 24, 2023
1 parent 2f95adc commit 4bdab80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sdks/python/apache_beam/ml/inference/huggingface_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from apache_beam.ml.inference import utils
from apache_beam.ml.inference.base import ModelHandler
from apache_beam.ml.inference.base import PredictionResult
from apache_beam.ml.inference.base import PredictionT
from apache_beam.ml.inference.pytorch_inference import _convert_to_device
from transformers import AutoModel
from transformers import TFAutoModel
Expand Down Expand Up @@ -166,7 +165,7 @@ def __init__(
framework: str,
device: str = "CPU",
*,
inference_fn: Optional[Callable[..., Iterable[PredictionT]]] = None,
inference_fn: Optional[Callable[..., Iterable[PredictionResult]]] = None,
load_model_args: Optional[Dict[str, Any]] = None,
inference_args: Optional[Dict[str, Any]] = None,
min_batch_size: Optional[int] = None,
Expand Down Expand Up @@ -345,7 +344,7 @@ def __init__(
model_class: Union[AutoModel, TFAutoModel],
device: str = "CPU",
*,
inference_fn: Optional[Callable[..., Iterable[PredictionT]]] = None,
inference_fn: Optional[Callable[..., Iterable[PredictionResult]]] = None,
load_model_args: Optional[Dict[str, Any]] = None,
inference_args: Optional[Dict[str, Any]] = None,
min_batch_size: Optional[int] = None,
Expand Down

0 comments on commit 4bdab80

Please sign in to comment.