import gradio as gr #calculation def calculate (for_this,this_much,how_much_for_this): x = float(for_this) y = float(this_much) z = float(how_much_for_this) answer = (y/x)*z return answer iface = gr.Interface(fn=calculate, inputs=["text", "text", "text"], outputs=["textbox"]) iface.launch()