This is a simple app meant to replicate some of the code interpreter capabilities of ChatGPT: it's a chatbot capable of running Python code on the browser. I created because I wanted to analyze and visualize data by "chatting" with it in plain English (see deepshet)
If you're curious, check out the step-by-step tutorial.
- Install Python 3.10.
- Install Poetry.
- From the root folder of the project, install the dependencies:
poetry config virtualenvs.in-project true poetry install
- Update .env-example with your OpenAI secret key and save it as
.env
- To start the app, open a terminal in
src/app
and runlitestar run --reload --debug
- Go to
http://127.0.0.1
.
The app looks like this:
![](https://private-user-images.githubusercontent.com/7218756/238204995-bcc56ab2-15d6-4151-9899-bcfec9a0c37c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzc1MjIsIm5iZiI6MTcyNDI3NzIyMiwicGF0aCI6Ii83MjE4NzU2LzIzODIwNDk5NS1iY2M1NmFiMi0xNWQ2LTQxNTEtOTg5OS1iY2ZlYzlhMGMzN2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjFUMjE1MzQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mzk0OWJjYzAzNjJmNDMyYzk0MDhiZTczODMxMzhiODkwMmQyMzk1Y2M1ZDFiNWRiOGU5NmQ0MmM4OWRkNjIyNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PHX6lIHZOxsvUnGHf78Rsch4cON2Q3k5wu_hvua44t0)
MIT.