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