Build a Text Generator Web App in under 50 Lines of Python

Learn to build a web app which auto-completes any input text

Dev Sharma
Towards Data Science
8 min readOct 27, 2019

--

We will be using OpenAI’s GPT-2 as the model and Panel as the web dashboard framework. This guide will be split into two parts. In the first part, we will load our model and write a predictions function. In the second, we will build the web application.

Example text generation application. We will be building a simpler variation of this web app.

--

--