import gradio as gr from NDPS import ndps demo = gr.Interface(fn=ndps, inputs="text", outputs="text") demo.launch()