video_input_file_upload.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your Google API key
4
Use the local video directly
Remove the
UploadFileConfig import and the remote file lookup and upload block. Replace Video(content=video_file) with Video(filepath=video_path).5
Download the sample video
Download the video expected by the saved script:
6
Run the example
Save the code above as
video_input_file_upload.py, then run: