Awesome-Python-Scripts/BMI_and_BMR_Calculator/1_Home.py
2024-10-31 13:55:26 +05:30

53 lines
1.9 KiB
Python

import streamlit as st
import pandas as pd
from pathlib import Path
import pickle
layout ='centered'
page_title = 'BMI and BMR Calculator'
st.set_page_config(page_title=page_title, layout=layout)
st.header(page_title)
st.subheader('Body Mass Index (BMI)')
st.write('''BMI is a measurement of a person's leanness
or corpulence based on their height and weight, and
is intended to quantify tissue mass.
It is widely used as a general indicator of whether a person has a healthy body weight for their height. Specifically, the value obtained from the calculation of BMI is used to categorize whether a person is underweight, normal weight, overweight, or obese depending on what range the value falls between. These ranges of BMI vary based on factors such as region and age, and are sometimes further divided into subcategories such as severely underweight or very severely obese. Being overweight or underweight can have significant health effects, so while BMI is an imperfect measure of healthy body weight, it is a useful indicator of
whether any additional testing or action is required''')
st.subheader('BMI Formula')
st.write('''
BMI in the International System of Units (SI)\n\n
\t\t\t BMI = Mass(Kg)/(Height(m)^2)
''')
st.subheader('Basal Metabolic Rate (BMR)')
st.write('''
The basal metabolic rate (BMR) is the amount of energy needed while resting in
a temperate environment when the digestive system is inactive. It is the
equivalent of figuring out how much gas an idle car consumes while parked.
In such a state, energy will be used only to maintain vital organs, which
include the heart, brain, kidneys, nervous system, intestines, liver, lungs,
sex organs, muscles, and skin.
''')
st.write('''
\n Mifflin-St Jeor Equation:\n
\nFor men: BMR = 10W + 6.25H - 5A + 5\n
For women: BMR = 10W + 6.25H - 5A - 161
''')
st.write("\n\nTo measure your BMI and BMR go to the calculate page\n")