Skip to content

Commit 4f9c9a5

Browse files
committed
Better doc link
1 parent 5eca836 commit 4f9c9a5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/sagemaker/utils.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,6 @@ def _create_or_update_code_dir(
625625
if os.path.exists(os.path.join(code_dir, inference_script)):
626626
pass
627627
else:
628-
docs_url = (
629-
"https://sagemaker.readthedocs.io/en/stable/"
630-
"frameworks/pytorch/using_pytorch.html#bring-your-own-model"
631-
)
632628
raise FileNotFoundError(
633629
f"Could not find '{inference_script}'. Common solutions:\n"
634630
"1. Make sure inference.py exists in the code/ directory\n"
@@ -642,9 +638,10 @@ def _create_or_update_code_dir(
642638
" ├── model.pth (or your model file)\n"
643639
" └── code/\n"
644640
" ├── inference.py\n"
645-
" └── requirements.txt"
641+
" └── requirements.txt\n"
646642
"\nFor more details, see the documentation:\n"
647-
f"{docs_url}"
643+
+ "https://sagemaker.readthedocs.io/en/stable/"
644+
+ "frameworks/pytorch/using_pytorch.html#bring-your-own-model"
648645
)
649646

650647
for dependency in dependencies:

0 commit comments

Comments
 (0)