sivakornchong's picture
fix
a20f801
raw
history blame
428 Bytes
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()