Skip to content

pythontime/gemini-intro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

O'Reilly Live Trainining - Building Apps with Gemini

Setup

Conda

  • Install anaconda
  • This repo was tested on a Mac with python=3.10.
  • Create an environment: conda create -n oreilly-gemini python=3.10
  • Activate your environment with: conda activate oreilly-gemini
  • Install requirements with: pip install -r requirements/requirements.txt
  • Setup your openai API key

Pip

  1. Create a Virtual Environment: Navigate to your project directory. Make sure you have python3.10 installed! If using Python 3's built-in venv: python -m venv oreilly-gemini If you're using virtualenv: virtualenv oreilly-gemini

  2. Activate the Virtual Environment:

    • On Windows:: .\oreilly-gemini\Scripts\activate
    • On macOS and Linux:: source oreilly-gemini/bin/activate
  3. Install Dependencies from requirements.txt:

    pip install python-dotenv
    pip install -r ./requirements/requirements.txt
  4. Setup your openai API key

Remember to deactivate the virtual environment afterwards: deactivate

Setup your .env file

  • Change the .env.example file to .env and add your OpenAI API key.
OPENAI_API_KEY=<your openai api key>

To use this Environment with Jupyter Notebooks:

  • conda install jupyter -y
  • python -m ipykernel install --user --name=oreilly-gemini

Notebooks

Here are the notebooks available in the notebooks/ folder:

  1. Gemini API Introduction Open In Colab

  2. Prompting Gemini Open In Colab

  3. Gemini Embeddings Open In Colab

  4. Gemini Chat, PDF & Image Understanding Open In Colab

Additional resources can be found in:

  • notebooks/assets-resources/ - Supporting assets and resources

About

Building AI Apps with Gemini and Google AI Studio 10-23-25

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.1%
  • Other 1.9%