-
Make a new folder on your computer and name it:
πBMI-Calculator_App
-
Inside the folder, add these 3 files:
bmi_calculator.py
π (main Python code)background.jpg
πΌοΈ (your background image)logo.png
π¨ (your app logo)
Open your terminal or command prompt:
pip install streamlit
- Open VS Code or any text editor.
- Paste the full code I gave you in the previous message into a new file.
- Save it as:
BMI-calculator.py
Make sure your:
background.jpg
(from earlier)logo.png
(your BMI icon or image)
...are in the same folder as BMI-calculator.py
.
β You can use the ones we already made, or design your own!
In the terminal, navigate to the folder and run:
streamlit run BMI-calculator.py
Your browser will open automatically and show your BMI Calculator app! ππ»βοΈ
-
Go to π https://share.streamlit.io
-
Sign in with GitHub
-
Upload your project to GitHub:
- Create a new repository (e.g.,
BMI-calculator
) - Upload:
BMI-calculator.py
background.jpg
logo.png
- Create a new repository (e.g.,
-
Back in Streamlit Cloud, select your GitHub repo.
-
Click "Deploy" π
β Done! Your app will have a public link you can share!
- π¨ Beautiful background and logo
- π§ User inputs height and weight
- π‘ Calculates BMI and explains result
- β€οΈ Footer with your name
- Add sound effects π΅
- Add a BMI chart π
- Save BMI history in a CSV π
- Add multi-language support π