vs code
python3
flask
https://platform.openai.com/docs/quickstart
- code for python flask server with "/prompt" route with POST method and take
string. use openai api and send string as prompt and return response
-
create "/" default route with GET method and return index.html
-
code for index.html file with bootstrap. display input field and submit button. on click submit button, check if input is not empty then send POST request to "/prompt" with text from input field as string and display the response.