File tree 1 file changed +3
-3
lines changed
vertexai/reasoning_engines
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -374,13 +374,13 @@ def _prepare(
374
374
gcs_bucket = storage_client .create_bucket (new_bucket , location = location )
375
375
_LOGGER .info (f"Creating bucket { staging_bucket } in { location = } " )
376
376
377
- blob = gcs_bucket .blob (os . path . join ( gcs_dir_name , _BLOB_FILENAME ) )
377
+ blob = gcs_bucket .blob (f" { gcs_dir_name } / { _BLOB_FILENAME } " )
378
378
with blob .open ("wb" ) as f :
379
379
cloudpickle .dump (reasoning_engine , f )
380
380
dir_name = f"gs://{ staging_bucket } /{ gcs_dir_name } "
381
381
_LOGGER .info (f"Writing to { dir_name } /{ _BLOB_FILENAME } " )
382
382
383
- blob = gcs_bucket .blob (os . path . join ( gcs_dir_name , _REQUIREMENTS_FILE ) )
383
+ blob = gcs_bucket .blob (f" { gcs_dir_name } / { _REQUIREMENTS_FILE } " )
384
384
if requirements :
385
385
blob .upload_from_string ("\n " .join (requirements ))
386
386
_LOGGER .info (f"Writing to { dir_name } /{ _REQUIREMENTS_FILE } " )
@@ -391,6 +391,6 @@ def _prepare(
391
391
for file in extra_packages :
392
392
tar .add (file )
393
393
tar_fileobj .seek (0 )
394
- blob = gcs_bucket .blob (os . path . join ( gcs_dir_name , _EXTRA_PACKAGES_FILE ) )
394
+ blob = gcs_bucket .blob (f" { gcs_dir_name } / { _EXTRA_PACKAGES_FILE } " )
395
395
blob .upload_from_string (tar_fileobj .read ())
396
396
_LOGGER .info (f"Writing to { dir_name } /{ _EXTRA_PACKAGES_FILE } " )
You can’t perform that action at this time.
0 commit comments