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