| import gradio as gr | |
| title = "GPT-2 Generator" | |
| description = "Let GPT-2 complete your sentence." | |
| examples = [ | |
| ['Monty Python were'], | |
| ["The answer to life, the universe and everything is"], | |
| ] | |
| gr.Interface.load( | |
| "huggingface/gpt2-large", | |
| inputs=gr.inputs.Textbox(lines=5, label="Input Text"), | |
| title=title, | |
| description=description, | |
| examples=examples | |
| ).launch() |