import gradio gradio.Interface( fn=predict, inputs="text", outputs="text", allow_flagging='never' ).launch()