docs: Update the quickstart guide to be consistent with the gallery
@@ -90,11 +90,11 @@ Define and Debug Services
Services are the core components of BentoML, where the serving logic is defined. With the model
saved in the model store, we can define the :ref:`service <service-definition-page>` by creating a
-Python file :code:`bento.py` with the following contents:
+Python file :code:`service.py` with the following contents:
.. code-block:: python
- # bento.py
+ # service.py
import bentoml
import bentoml.sklearn
import numpy as np
@@ -123,14 +123,14 @@ In this example, we defined the input and output type to be :code:`numpy.ndarray
We now have everything we need to serve our first request. Launch the server in debug mode by
running the :code:`bentoml serve` command in the current working directory. Using the
-:code:`--reload` option allows the server to reflect any changes made to the :code:`bento.py` module
+:code:`--reload` option allows the server to reflect any changes made to the :code:`service.py` module
without restarting:
.. code-block:: bash
- > bentoml serve ./bento.py:svc --reload
+ > bentoml serve ./service.py:svc --reload
- [10:18:42 AM] INFO Starting development BentoServer from "./bento.py:svc"
+ [10:18:42 AM] INFO Starting development BentoServer from "./service.py:svc"
[10:18:42 AM] INFO Service imported from source: bentoml.Service(name="iris_classifier", import_str="bento:svc", working_dir="/home/user/devel/bentoml-quickstart")
[10:18:42 AM] INFO Will watch for changes in these directories: ['/home/user/devel/bentoml-quickstart'] config.py:334
INFO Uvicorn running on http://127.0.0.1:5000 (Press CTRL+C to quit) config.py:554
@@ -178,7 +178,7 @@ To build a Bento, first create a file named :code:`bentofile.yaml` in your proje
.. code-block:: yaml
# bentofile.yaml
- service: "bento.py:svc" # A convention for locating your service: <YOUR_SERVICE_PY>:<YOUR_SERVICE_ANNOTATION>
+ service: "service.py:svc" # A convention for locating your service: <YOUR_SERVICE_PY>:<YOUR_SERVICE_ANNOTATION>
include:
- "*.py" # A pattern for matching which files to include in the bento
python:
