Git Product home page Git Product logo

ai-puppet's Introduction

AI Puppet Example

This is an example repo for creating an OpenAI ChatGPT-powered chatbot that you can talk to with your voice thanks to OpenAI's Whisper transcription model.

It's a very minimal example of a talking chatbot with a voice. ๐ŸŽ™ For a more complex and customizable one, you can check out ๐Ÿงฆ Sock.

To Install

Dependencies

Make sure to have your various dependencies installed.

Install Frontend

yarn install

Install Backend

cd backend
python3 -m venv venv
venv\scripts\activate
pip install wheel
pip install -r requirements.txt

Set Up Backend .env File

Create a .env file in the backend directory with the following contents:

OPENAI_API_KEY="put key here"
OPENAI_CHAT_MODEL="gpt-3.5-turbo-0301"

To Run

Open two terminal windows.

  1. In the first terminal, run the following command to start the backend:

yarn backend

  1. In the second terminal window, run the following command to start the frontend:

yarn frontend

Finally, open a browser and navigate to http://localhost:3000.

Troubleshooting

If you get an error like TypeError: argument of type 'NoneType' is not iterable when you run yarn backend, you may need to forcibly reinstall whisper. Do the following in your terminal:

cd backend
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git

To get the chatbot to respond to you, say his name, "Data", after you've finished what you want to say.

ai-puppet's People

Contributors

cssquirrel avatar

Stargazers

John McKillip avatar

Watchers

 avatar

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.