import gradio as gr interface = gr.Interface.load( "huggingface/pranavpsv/gpt2-genre-story-generator", inputs=[gr.Textbox(lines=7, label="Story")], description="Story generation with GPT-2", examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]], outputs=[gr.Textbox(label='Story Generation Output')] ) interface.launch()