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