import gradio as gr from main import main_fn #Input structure ##Postal_,age_,town_,storey_,room_ = 680705, 30, 'CHOA CHU KANG', 12, '5 ROOM' iface = gr.Interface( fn=main_fn, inputs= [ gr.inputs.Textbox(type="text", label='Name'), ], outputs= [ gr.outputs.Textbox(type="text", label='Gender') gr.outputs.Number(label = 'Percentage confidence') ] ) iface.launch()