Slackbot
01/28/2024, 4:27 PMJian Shen Yap
01/30/2024, 4:35 PMJoshua Farmiloe
01/30/2024, 5:18 PMJian Shen Yap
01/30/2024, 5:21 PMbentofile.yamlJian Shen Yap
01/30/2024, 5:22 PMpython:
packages: # Additional pip packages required by the service
- scikit-learn
- pandas
- pillow # hereJoshua Farmiloe
01/30/2024, 5:23 PMJian Shen Yap
01/30/2024, 5:24 PMpython:
requirements_txt: "./path-to-it/requirements.txt"
https://docs.bentoml.com/en/latest/concepts/bento.html#python-packagesJoshua Farmiloe
01/30/2024, 5:28 PMJoshua Farmiloe
01/30/2024, 6:56 PMJoshua Farmiloe
01/30/2024, 6:57 PMconda:
channels:
- conda-forge
dependencies:
- tensorflow
- numpy
- pillow
- bentoml[io-image]
E_index.json: ./content/E_index.json
service: "service:electrical_service" # Same as the argument passed to bentoml
labels:
owner: Josh
stage: production
include:
- "*.py" # A pattern for matching which files to include in the bentoJoshua Farmiloe
01/30/2024, 6:57 PMJoshua Farmiloe
01/30/2024, 7:00 PMJoshua Farmiloe
01/31/2024, 2:19 PMJian Shen Yap
01/31/2024, 2:20 PMTry it out you would get an example of how you send the curl request!Joshua Farmiloe
01/31/2024, 3:52 PM