Giter Site home page Giter Site logo

ignite23-gpt-workshop's Introduction

Duke Ignite GPT3 Workshop 2023: Using the ChatGPT API

Welcome to Duke Ignite 2023! We're glad you're here. This repository will show you how to use the ChatGPT API to generate text. You'll be able to chat with it here in your terminal. The goal of this workshop is to show you how you can incorporate the API into your projects this weekend. Happy hacking!

Steps to run this locally

  1. Clone this repository and open a terminal window in your project directory
  2. python3 -m venv venv - creates a virtual environment where you can put your dependencies
  3. source venv/bin/activate - activates the virtual environment
  4. pip install -r requirements.txt - installs the dependencies
  5. Go to OpenAI and get an API key (https://platform.openai.com/account/api-keys)
  6. Create a file called .env and add this line: OPENAI_API_KEY=YOUR OPEN AI KEY HERE FROM THE WEBSITE
  7. You can use my api key for this workshop: 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
  8. python3 main.py - runs the program

(Note: how to freeze the venv into requirements.txt: pip freeze > requirements.txt)

This repo was put together by Joe Zakielarz, Duke '24.

ignite23-gpt-workshop's People

Contributors

jjzfive 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.