- 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.