Use private pip repositories
[global]
timeout = 60
index-url = http://pypi.python.org/simple/[global]
timeout = 60
index-url = http://pypi.python.org/simple/
cert = /model/files/cert.pemkind: Model
name: linear_regression
runtime: "hydrosphere/serving-runtime-python-3.7:$released_version$"
install-command: "PIP_CONFIG_FILE=pip.conf pip install -r requirements.txt"
payload:
- "src/"
- "requirements.txt"
- "pip.conf" # location of your pip.conf
- "cert.pem" # location of your certificate. It'll be available under /model/files/cert.pem
- "model.h5"
contract:
name: infer
inputs:
x:
shape: [-1, 2]
type: double
outputs:
y:
shape: [-1]
type: doubleLast updated
Was this helpful?