Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1014 Bytes

File metadata and controls

49 lines (40 loc) · 1014 Bytes

Advanced BMI Calculator

Overview A Python-based BMI calculator with a Gradio interface. It calculates BMI, provides health advice, and suggests an ideal weight. Users can input height in meters or inches.

Features

  • BMI calculation.
  • Health advice based on BMI category.
  • Ideal weight suggestion.
  • Input height in meters or inches.
  • Interactive Gradio interface.

Prerequisites

  • Python (>= 3.6)
  • Gradio library: Install with
    pip install gradio

How to Run

  1. Save the script as bm.py.
  2. Run the script:
    python bm.py
  3. Open the URL provided in the terminal.

Usage

  1. Enter weight (kg) and height (meters or inches).
  2. Select age and gender.
  3. Click "Submit" to view BMI, category, health advice, and ideal weight.

Example Input:

  • Weight: 70 kg
  • Height: 1.75 meters
  • Age: 25 years
  • Gender: Male

Output:

BMI: 22.86
Status: Normal weight
Advice: Maintain a balanced diet and exercise.
Ideal Weight: 69.25 kg

Enjoy using the BMI calculator!