A simple little Streamlit app to call OpenAI's models for customer conversation autocompletion and summarization.
-
First install the deps:
poetry install
-
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" }
-
Finally, simply run the app:
poetry run streamlit run convoAI.py
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.
Licensed MIT. Feel free to use the code any way you wish!