Skip to content

Commit 2281f2e

Browse files
authored
Aws marketplace (#1049)
* adding a generic sample notebook for aws_marketplace based model packages * fixing relative paths * rename file * fixing the filepath to make it work with files present in sub-folders
1 parent 17e33ba commit 2281f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@
851851
"\n",
852852
"parsed_url = urlparse(transformer.output_path)\n",
853853
"bucket_name = parsed_url.netloc\n",
854-
"file_key = '{}/{}.out'.format(parsed_url.path[1:], file_name)\n",
854+
"file_key = '{}/{}.out'.format(parsed_url.path[1:], file_name.split(\"/\")[-1])\n",
855855
"print(file_key)\n",
856856
"s3_client = sagemaker_session.boto_session.client('s3')\n",
857857
"\n",

0 commit comments

Comments
 (0)