Skip to content

gganssle/pychat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pychat

A simple little Streamlit app to call OpenAI's models for customer conversation autocompletion and summarization.

Running the App

  1. First install the deps:

    poetry install

  2. Then get an api key from OpenAI here and put it in a key.json file in the base directory, formatted like this:

{ "key": "keystringhere" }

  1. Finally, simply run the app:

    poetry run streamlit run convoAI.py

Auto-Resopnses

The OpenAI API is slow to respond, and I haven't cared enough to make the call asynchronous using Sanic or other. That means this app runs mildly slow when you enter a customer comment. If you want to stop using autoresponses, comment out the lines marked "auto responses" in convoAI.py.

Better yet, upgrade those lines to use an async call and hit me with a PR.

License

Licensed MIT. Feel free to use the code any way you wish!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages