Python v3.11.3, Poetry
poetry installThen, get an API key from OpenAI and put it in a file called openai-api-key.txt in the root directory. You can get an API key from https://platform.openai.com/account/api-keys.
poetry run python app.pyand go to a url at http://localhost:7500
poetry run python app.py --shelland go to a url at http://localhost:7500
poetry run python app.py --prerecording=sample2.convo.txtand go to a url at http://localhost:7500
$ poetry run python app.py --help
usage: app.py [-h] [--shell] [--confirm] [--prerecording FILENAME]
Have GPT hallucinate a web app
options:
-h, --help show this help message and exit
--shell Start an interactive repl for each request, like flask shell, where the
user can live respond to a request
--confirm Wait for the user to accept each GPT suggestion before proceeding
--prerecording FILENAME
Use a prerecorded conversation from a file