import pathlib import textwrap import google.generativeai as genai import os import google.generativeai as genai import PIL.Image genai.configure(api_key=os.getenv["GEMINI_API_KEY"]) from IPython.display import display from IPython.display import Markdown def to_markdown(text): text = text.replace('•', ' *') return Markdown(textwrap.indent(text, '> ', predicate=lambda _: True)) """ Install the Google AI Python SDK $ pip install google-generativeai See the getting started guide for more information: