import gradio as gr iface = gr.Interface.load("gpt2", inputs="text", outputs="text") iface.launch()