import gradio as gr from gradio import inputs description = "Shakespeare generation with GPT-2" interface = gr.Interface.load("huggingface/lewtun/distilgpt2-finetuned-shakespeare", title = "Shakespeare Generation with GPT-2", inputs = [ gr.inputs.Textbox(lines=7, label="Story"), ], description=description, examples=[["HAMLET: To be or not to be"]] ) interface.launch(share=True)