generative-ai
generative-ai copied to clipboard
fix: allow product_attributes_extraction.ipynb to run on Vertex colab enterprise
Vertex AI colab enterprise does not allow fetching of external URI in Part.from_uri(), only gcs path (gs://...) is allowed. Therefore adding a function to load external image from URL and create the prompt part using Part.from_data().
Description
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [X] Follow the
CONTRIBUTINGGuide. - [X] You are listed as the author in your notebook or README file.
- [X] Your account is listed in
CODEOWNERSfor the file(s).
- [X] Your account is listed in
- [X] Make your Pull Request title in the https://www.conventionalcommits.org/ specification.
- [X] Ensure the tests and linter pass (Run
nox -s formatfrom the repository root to format). - [ ] Appropriate docs were updated (if necessary)
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Can you also resolve the new notebook linter errors?