This is a simple BMI (Body Mass Index) calculator built using Streamlit, a Python library for creating web applications. The BMI calculator allows users to input their weight and height, select their preferred units, and calculate their BMI based on the input.
Here is the GUI:
- Input weight and height in either kilograms or pounds, and meters, centimeters, or inches respectively.
- Automatically converts weight and height units for accurate BMI calculation.
- Calculates BMI based on the formula: BMI = weight (kg) / (height (m) ^ 2).
- Provides an interpretation of the calculated BMI category (Underweight, Normal weight, Overweight, Obese).
- Responsive design for easy use on various devices.
-
Clone the repository to your local machine:
git clone https://github.com/your_username/bmi_calculator.git
-
Navigate to the project directory:
cd bmi_calculator
-
Install the required dependencies:
pip install streamlit
-
Run the Streamlit app:
streamlit run bmi_calculator.py
-
Access the BMI calculator in your web browser at the provided local address.
- Streamlit: 0.86.0
- Python: 3.8 or higher