GithubHelp home page GithubHelp logo

urantialife / gpt3-persona-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harperreed/gpt3-persona-bot

1.0 0.0 0.0 146 KB

a simple bot that allows you to chat with various personas

Python 66.13% CSS 12.76% HTML 21.11%

gpt3-persona-bot's Introduction

gpt3-persona-bot

a simple bot that allows you to chat with various personas

You will need a key.

how to run the cli

harper@ {~/openai/bot}$ pip3 install -r requirements.txt
...
...
harper@ {~/openai/bot}$ export OPENAI_API_KEY=sk-KEYKEYKEYKEYKEYKEYKEYKEY

harper@ {~/openai/bot}$ python3 cli.py        07/22/20  5:45PM
_   _                                        ____
| \ | | _____      __      __ _  __ _  ___   / ___|_   _ _ __ _   _
|  \| |/ _ \ \ /\ / /____ / _` |/ _` |/ _ \ | |  _| | | | '__| | | |
| |\  |  __/\ V  V /_____| (_| | (_| |  __/ | |_| | |_| | |  | |_| |
|_| \_|\___| \_/\_/       \__,_|\__, |\___|  \____|\__,_|_|   \__,_|
                                |___/

You are chatting with the persona named: New-age Guru

This persona is inspired by Conversations with Chris Holmes
This persona is designed by Chris Holmes and Harper Reed

type `quit` to quit
========================================================================

Please ask me a question

Q: Why are humans so full of pain?
A: Because it is our most powerful energy

you can change which persona it is using by passing the -p argument

$ python3 cli.py -p space
____                          ____  __
/ ___| _ __   __ _  ___ ___   / /  \/  | ___   ___  _ __
\___ \| '_ \ / _` |/ __/ _ \ / /| |\/| |/ _ \ / _ \| '_ \
___) | |_) | (_| | (_|  __// / | |  | | (_) | (_) | | | |
|____/| .__/ \__,_|\___\___/_/  |_|  |_|\___/ \___/|_| |_|
      |_|

You are chatting with the persona named: Space/Moon

This persona is inspired by Space and Moon law
This persona is designed by @Angeliki Kapoglou and Harper Reed

type `quit` to quit
========================================================================

Please ask me a question

Q: what jurisdiction is the  moon in?
A: According to the 1967 Outer Space Treaty, the Moon and other celestial 
bodies are “not subject to national appropriation by claim of sovereignty, 
by means of use or occupation, or by any other means.” No entity (national 
or otherwise) can claim ownership of the Moon.

how to run the web interface

Same as the cli:

python3 web.py

or if you want to specify a persona use

python3 web.py -p space

Works super well with ngrok or the like.

This is not meant to be a public facing product. If you want to make it public, please be responsible. Also remember to talk to openAI before you deploy anything into "production".

yay

Lot's of TODOs here.

  • Better handling when there isn't a good response.
  • Better handling of repeating responses
  • More personas
    • Doctor?
    • Dungeon master
    • More politicians?
    • Plato? lol

thanks

Thanks to @gdb and team for the awesome API. It is really amazing and has been loads of fun.

Can't wait to see how it turns out

gpt3-persona-bot's People

Contributors

8secz-johndpope avatar harperreed avatar johndpope avatar

Stargazers

 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.