Skip to content

Commit 80f3d2b

Browse files
author
Judy Heflin
committed
Fixed spacing on Python examples
1 parent 6d29354 commit 80f3d2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/overview.rst

+2
Original file line numberDiff line numberDiff line change
@@ -734,13 +734,15 @@ Then, using the model ID, define your model as a JumpStart model. Use the `deplo
734734
In this example, we use the EQA (extractive question answering) BERT base model (cased) from HuggingFace.
735735

736736
.. code:: python
737+
737738
from sagemaker.jumpstart.model import JumpStartModel
738739
model_id = "huggingface-eqa-bert-base-cased"
739740
my_model = JumpStartModel(model_id=model_id)
740741
predictor = my_model.deploy()
741742
742743
You can then run inference with the deployed model using the `predict` method.
743744
.. code:: python
745+
744746
question = "What is Southern California often abbreviated as?"
745747
response = predictor.predict(question)
746748
print(response)

0 commit comments

Comments
 (0)