Code Monkey home page Code Monkey logo

god-gpt's Introduction

God-GPT

Welcome to God-GPT, a proof-of-concept repository for a godlike autonomous agent that leverages the Dalee-2 API for image creation, the GPT model for text generation, and Langchain for agent orchestration. This project provides a set of Python scripts demonstrating the capabilities of this AI framework.

For an in-depth explanation and discussion of this project, refer to this talk: God-GPT Explained

Installation

Follow the instructions below to get God-GPT up and running on your local machine.

Requirements

  • Python virtual environment (venv)
  • OpenAI key for GPT
  • Elevenlabs key for speech synthesis

Instructions

  1. Create a Python virtual environment (venv)

    On the terminal, navigate to the project directory and run the following command:

    python3 -m venv ./venv

    Activate the virtual environment:

    source ./venv/bin/activate
  2. Install Dependencies

    Ensure that you are in the project directory, then run:

    pip install -r requirements.txt
  3. Setup API Keys

    Add your OpenAI (for GPT) and Elevenlabs (for speech synthesis) keys to the .env file. Refer to the example .env file in the repository.

    Visit the OpenAI and Elevenlabs websites to obtain your API keys if you do not already have them.

  4. Setup whisper.cpp

    Navigate to the directory containing whisper.cpp. Follow the instructions below:

    Download the base.en model:

    bash ./models/download-ggml-model.sh base.en

    Build the main example and transcribe an audio file:

    # build the main example
    make
    
    # transcribe an audio file to test everything works
    ./main -f samples/jfk.wav

Usage

To utilize the God-GPT agent, run one of the following scripts using Python:

  • talk_1.py - Basic GPT agent
  • talk_2.py - Agent with personality and I/O
  • talk_3.py - Agent with personality, I/O and memory
  • talk_4.py - Agent with personality, I/O, memory and tools (Dalee-2)

License

This project is licensed under the terms of the MIT License.

Support

Are you in need of assistance with your Applied AI project? We are happy to help! Visit Applifting.ai for more information.

god-gpt's People

Contributors

vratislav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ponderingken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.