import gradio as gr from pyserini_wikipedia_kilt_doc import search iface = gr.Interface(fn=search, inputs="text", outputs="text") iface.launch()