Skip to content

Files

Latest commit

 

History

History

deploy-ml-model

getting-started-examples

Examples to get started with using TrueFoundry

Deployment

This example runs a simple iris app for inferring using a iris classifier. Mainly this example shows how to deploy to TrueFoundry using a Pythonfile and TrueFoundry Python SDK.

Run Locally

  1. Install requirements
python -m pip install -r requirements.txt
  1. Start the iris app
python app.py

Deploy with TrueFoundry

  1. Install truefoundry
python -m pip install -U "truefoundry>=0.5.9,<0.6.0"
  1. Login
tfy login --host "<Host name of TrueFoundry UI. e.g. https://company.truefoundry.cloud>"
  1. Deploy!

Please refer to following docs

python deploy.py --name iris --workspace-fqn <Workspace FQN> --host <Ingress Host for the cluster> --path <optional path>