File size: 340 Bytes
c575e5c
 
d344f29
1a37fbf
d344f29
 
 
1a37fbf
c575e5c
0f15cf4
 
d344f29
1a37fbf
 
0f15cf4
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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", "number"],
    outputs=["number"],
)
if __name__ == "__main__":
    demo.launch()