| import gradio as gr | |
| description = 'This is a text generation model which uses the transformer architecture to generate text given an prompt' | |
| title = 'Story Generator' | |
| gr.Interface.load('huggingface/EleutherAI/gpt-j-6B', inputs=gr.inputs.Textbox(lines=5, label='Write a text prompt'), title=title, description=description).launch() |