Spaces:
Runtime error
Runtime error
add title
Browse files
app.py
CHANGED
@@ -1,12 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
|
|
|
|
6 |
return vo2
|
7 |
|
8 |
demo = gr.Interface(
|
9 |
fn=greet,
|
|
|
10 |
inputs=["number", "number", "number", "number", "number"],
|
11 |
outputs=["number"],
|
12 |
)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
title = "VO2max calculator"
|
4 |
|
5 |
+
def greet(vekt, høyde, midje, alder, kjønn):
|
6 |
+
|
7 |
+
vo2 = vekt*høyde*midje*alder*kjønn
|
8 |
return vo2
|
9 |
|
10 |
demo = gr.Interface(
|
11 |
fn=greet,
|
12 |
+
title=title,
|
13 |
inputs=["number", "number", "number", "number", "number"],
|
14 |
outputs=["number"],
|
15 |
)
|