import gradio as gr examples = [["It was midnight"], ["There once was"],["She still weeps in the halls"]] gr.Interface.load("huggingface/abbas/gpt2-horror-stories", examples=examples).launch();