Files
mlflow--mlflow/tests/pyfunc/custom_model/transitive_test/model_with_transitive.py
T
2026-07-13 13:22:34 +08:00

10 lines
302 B
Python

from custom_model.transitive_test.transitive_dependency import some_function
from mlflow.pyfunc import PythonModel
class ModelWithTransitiveDependency(PythonModel):
def predict(self, context, model_input, params=None):
result = some_function()
return [result] * len(model_input)