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