Video upload stopped working

Hi,
I had the video upload working fine. It suddendly stopped. Errror: AttributeError: module ‘google.generativeai’ has no attribute ‘upload_file’

It seems Generativeai class does not have the upload_file available anymore?

This cookbook/quickstarts/Video.ipynb at main · google-gemini/cookbook · GitHub

Does the above code work for you?

Hello,

the culprit for missing upload_file is usually the version of the Python library (older version). Check which version you have vs the latest.

Hope that helps!

1 Like

I just fixed it. I reinstalled . Did pip install google.generativeai again and now t is working again. Sorry about wasting your time but thanks for the willingness to help.