Skip to content

Commit

Permalink
fix: update tfs documentation for requirements.txt (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuyang-deng committed Oct 3, 2019
1 parent b006d73 commit 678211d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sagemaker/tensorflow/deploying_tensorflow_serving.rst
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,14 @@ in the following code:
You can also bring in external dependencies to help with your data
processing. There are 2 ways to do this:

1. If you included ``requirements.txt`` in your ``source_dir`` or in
your dependencies, the container installs the Python dependencies at runtime using ``pip install -r``:
1. If you included ``requirements.txt`` in your ``source_dir``, the container installs the Python dependencies at runtime using ``pip install -r``:

.. code::
from sagemaker.tensorflow.serving import Model
model = Model(entry_point='inference.py',
dependencies=['requirements.txt'],
source_dir='source/directory',
model_data='s3://mybucket/model.tar.gz',
role='MySageMakerRole')
Expand Down

0 comments on commit 678211d

Please sign in to comment.