import fn import gradio as gr demo = gr.Interface( fn=fn_pke, inputs="text", outputs="text").launch() if __name__ == '__main__': demo.launch()