chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:22:34 +08:00
commit 4b22cfda96
9037 changed files with 2363717 additions and 0 deletions
@@ -0,0 +1,13 @@
from mlflow.models import ModelConfig, set_model
from mlflow.pyfunc import PythonModel
base_config = ModelConfig(development_config="tests/pyfunc/sample_code/config.yml")
class MyModel(PythonModel):
def predict(self, context, model_input):
timeout = base_config.get("timeout")
return f"Predict called with input {model_input}, timeout {timeout}"
set_model(MyModel())