Skip to content

Commit 678211d

Browse files
authored
fix: update tfs documentation for requirements.txt (#1074)
1 parent b006d73 commit 678211d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sagemaker/tensorflow/deploying_tensorflow_serving.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,14 @@ in the following code:
424424
You can also bring in external dependencies to help with your data
425425
processing. There are 2 ways to do this:
426426

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

430429
.. code::
431430
432431
from sagemaker.tensorflow.serving import Model
433432
434433
model = Model(entry_point='inference.py',
435-
dependencies=['requirements.txt'],
434+
source_dir='source/directory',
436435
model_data='s3://mybucket/model.tar.gz',
437436
role='MySageMakerRole')
438437

0 commit comments

Comments
 (0)