version: 1.1 kind: component name: iris-classification tags: ["streamlit", "app"] inputs: - name: uuid isOptional: true type: str run: kind: service ports: [8501] rewritePath: true init: - git: {"url": "https://github.com/polyaxon/polyaxon-examples"} - artifacts: {"files": ["{{ uuid }}/assets/model/iris-model.joblib"]} container: image: polyaxon/polyaxon-contrib workingDir: "{{ globals.artifacts_path }}/polyaxon-examples/in_cluster/sklearn/iris" command: [streamlit, run, app.py] args: ["--", "--model-path={{ globals.artifacts_path }}/{{ uuid }}/assets/model/iris-model.joblib"]