A simple Streamlit app for generating text using GPT2 model. Users can input a prompt and fine-tune generation parameters such as max length, temperature, top-k, top-p, and repetition penalty.
✅ Customizable text generation with GPT2
✅ Adjustable sampling parameters for creative control
✅ Generates multiple output sequences
The app loads the pre-trained GPT2 model and tokenizer. Users enter a text prompt. Various parameters can be adjusted via the sidebar. The app generates text based on the input and selected settings.
The project was developed using Visual Studio Code 1.97 with Python 3.9.21
👨💻 Try it out and tweak the settings to explore different text generation styles!