import gradio as gr with gr.Interface.load("huggingface/gpt2") as iface: iface.launch()