Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber committed Dec 20, 2024
1 parent a8adde3 commit cda2ee1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdks/python/apache_beam/yaml/yaml_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

"""This module defines yaml wrappings for some ML transforms."""
from typing import Any
from typing import Callable
from typing import Dict
from typing import List
from typing import Optional
Expand All @@ -41,7 +40,7 @@


class ModelHandlerProvider:
handler_types: Dict[str, Callable[..., "ModelHandlerProvider"]] = {}
handler_types: Dict[str, "ModelHandlerProvider"] = {}

def __init__(
self,
Expand Down Expand Up @@ -158,7 +157,7 @@ def __init__(
This Model Handler also required a `preprocess` function to be defined.
Preprocessing and Postprocessing are described in more detail in the
RunInference docs:
https://beam.apache.org/releases/yamldoc/current/#runinference
https://beam.apache.org/releases/yamldoc/current/#runinference
Every model will have a unique input, but all requests should be
JSON-formatted. For example, most language models such as Llama and Gemma
Expand Down Expand Up @@ -414,7 +413,7 @@ def fn(x: PredictionResult):
'inference'.
inference_args: Extra arguments for models whose inference call requires
extra parameters. Make sure to check the underlying ModelHandler docs to
see which args are allowed.
see which args are allowed.
"""

Expand Down

0 comments on commit cda2ee1

Please sign in to comment.