https://github.com/thatlinuxguyyouknow/gemini-code-intepreter
Googles Gemini Model with the ability to execute code using a code intepreter
https://github.com/thatlinuxguyyouknow/gemini-code-intepreter
Last synced: over 1 year ago
JSON representation
Googles Gemini Model with the ability to execute code using a code intepreter
- Host: GitHub
- URL: https://github.com/thatlinuxguyyouknow/gemini-code-intepreter
- Owner: ThatLinuxGuyYouKnow
- Created: 2024-06-20T12:51:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T23:00:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T12:15:58.165Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gemini-Code-Intepreter
Googles Gemini Model with the ability to execute code using a code intepreter using function calling
# AI Code Interpreter Project
This project leverages IPython, Vertex AI, and a generative model to interpret and execute Python code within a secure environment. The setup uses environment variables to manage sensitive information securely.
## Features
- **IPython Integration**: Use IPython to manage and execute notebook cells.
- **Vertex AI Initialization**: Seamlessly integrate with Vertex AI to use generative models.
- **Secure Execution**: Execute AI-generated code in a sandboxed environment.
- **Environment Variables**: Manage sensitive data using environment variables.
## Getting Started
Follow these steps to set up and run the project on your local machine.
### Prerequisites
Make sure you have the following installed:
- Python 3.x
- pip (Python package installer)
### Installation
1. Clone the Repository
```bash
git clone https://github.com/yourusername/ai-code-interpreter.git
cd ai-code-interpreter
```
2. Install Required Packages
``` bash
pip install -r requirements.txt
```
## Environment Variables
create a .env file in the root of this projects directory
```makefile
PROJECT_ID=*********
LOCATION=***********
E2B_API_KEY=***********************
```
## Run the application
```bash
python3 intepreter.py
```
## Usage
Once the application is running, you can enter your prompts to interact with the AI code interpreter.
File Structure
interpreter.py: Main script that sets up and runs the AI code interpreter.
.env: Environment variables for sensitive data (not included in the repository).
Contributing
Contributions are welcome! Please create a pull request or open an issue to discuss any changes or improvements.
License
This project is licensed under the MIT License.