[Serve] [doc] Add model URI to deployment example (#18085)

This commit is contained in:
architkulkarni 2021-08-26 09:37:32 -07:00 committed by GitHub
parent c16e730f0e
commit ea4f54f8ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,8 @@ class will allow you to load a model using its MLflow `Model URI`:
df = pd.read_csv(csv_text)
return self.model.predict(df)
MLflowDeployment.deploy()
model_uri = "model:/my_registered_model/Production"
MLflowDeployment.deploy(model_uri)
.. tip::