* Fix: NameError: name 'endpoint' is not defined
* Set up Cloud Run job trigger and status monitoring with automatic shutdown
* Offload asynchronous task to Cloud Run job when environment is configured
---------
Co-authored-by: Harrison Fisher <HarrisonFisher@users.noreply.github.com>
- Updated caption_video function to check for S3 and GCP environment variables.
- Added logic to switch between S3 and GCP based on the available environment variables.
- Ensured that the code only attempts to upload to the configured storage provider.
- Added logging for debugging purposes.
This change allows the application to upload files to either S3 or GCP, depending on the environment variables set.