import gradio as gr | |
def main(postal: int, floor: int): | |
test = postal/floor | |
return test | |
iface = gr.Interface( | |
fn=main, | |
inputs= [ | |
gr.inputs.Number(default=680705, label='Postal Code', optional=False), | |
gr.inputs.Number(default=11, label='Floor', optional=False) | |
], | |
outputs= [ | |
gr.outputs.Textbox(type="text", label='House price ($)') | |
] | |
) | |
iface.launch() |