phamtrancsek12/text-auto-completion ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple text auto completion demo that uses a GPT 2 model behind the scenes.
I want a small web app with a text box where someone can start typing and then get suggested continuation as they type. Include a Python API that takes the text input plus a couple of tuning options like temperature and top p, then returns generated text. Also make a basic HTML page that talks to that API and shows the results in a clean, easy to use way.
Keep it lightweight and easy to run locally, with clear setup instructions for using a pretrained GPT 2 checkpoint or plugging in my own model if I have one. If you need to check current docs for the model library or browser side setup, go ahead and look them up.
Are you gonna build this?
make sure you review the code using coderabbit