Aravindan commited on
Commit
5d4d49e
1 Parent(s): 11074c4

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def bmi(name, height, weight):
4
+ bmi_val= weight / (height ** 2)
5
+ return f"Your Bmi is {str(bmi_val)}!"
6
+
7
+ interface = gr.Interface(fn = bmi, inputs = ["text", gr.inputs.Slider(0,100,label = "height"),gr.inputs.Slider(0,100,label = 'Weight')],
8
+ outputs = ['text'],
9
+ examples = [['R.Aravindan',170,89],['R.Bro Your name',170,89]],
10
+ theme = 'darkhuggingface',
11
+ title = "BMI CALCULATOR",
12
+ description = "Use this example and try to run the same example by clicking that").launch(inline = False)