Skip to content

Commit 89b83ef

Browse files
committed
cleanup
1 parent f41e8be commit 89b83ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def upload_s3files(s3uri, file_path_with_pattern):
249249
try:
250250
for file_path in glob.glob(file_path_with_pattern):
251251
file_name = os.path.basename(file_path)
252-
__s3file = f'{key}/{file_name}'
252+
__s3file = f'{key}{file_name}'
253253
print(file_path, __s3file)
254254
s3_bucket.upload_file(file_path, __s3file)
255255
except ClientError as e:
@@ -664,7 +664,7 @@ def train():
664664
)
665665
print('Uploading DB Models...')
666666
upload_s3folder(
667-
f'{db_models_s3uri}/{db_model_name}',
667+
f'{db_models_s3uri}{db_model_name}',
668668
os.path.join(db_model_dir, db_model_name)
669669
)
670670
except Exception as e:

0 commit comments

Comments
 (0)