SSO-VO2max-calc / app.py
bjornsing's picture
add gender class
d1fc51c
raw
history blame contribute delete
374 Bytes
import gradio as gr
title = "VO2max calculator"
def greet(vekt, høyde, midje, alder, kjønn):
vo2 = vekt*høyde*midje*alder*kjønn
return vo2
demo = gr.Interface(
fn=greet,
title=title,
inputs=["number", "number", "number", "number", gr.Radio(["Mann", "Kvinne"], type="index")],
outputs=["number"],
)
if __name__ == "__main__":
demo.launch()