CalorieCounter is a simple Python-based application designed to help users track their daily caloric intake. It is built using Streamlit, providing an easy-to-use interface for monitoring calories.
- Calorie Tracking: Tracks and displays daily caloric intake.
- Gemini Pro Integration: Utilizes Gemini Pro for advanced features.
- Google API Integration: Utilizes Google API for additional functionalities.
To run this project, you need to have Python installed along with the following libraries:
- Streamlit
- Gemini Pro
- Google API Client
You can install these requirements using the following command:
pip install -r requirements.txt
-
Clone the repository:
git clone https://github.com/shradha-2022/CalorieCounter.git
-
Navigate to the project directory:
cd CalorieCounter
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required libraries:
pip install -r requirements.txt
-
Set up the Google API Key:
- Obtain your Google API key from the Google Cloud Console.
- Create a file named
.env
in the project directory. - Add the following line to the
.env
file:GOOGLE_API_KEY=your_google_api_key
-
Set up the Gemini Pro API Key:
- Obtain your Gemini Pro API key from the Gemini Pro Console.
- Add the following line to the
.env
file:GEMINI_PRO_API_KEY=your_gemini_pro_api_key
-
Run the application:
streamlit run app.py
- Open your terminal and run the application using
streamlit run app.py
. - Open your web browser and go to the URL provided by Streamlit (usually
http://localhost:8501
). - Start tracking your daily caloric intake.
CalorieCounter/
│
├── app.py # Main application file
├── requirements.txt # List of dependencies
├── .env # Environment variables file for API keys
└── License.md # License file
Contributions are welcome! If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Add feature"
- Push to the branch:
git push origin feature-name
- Create a pull request.
This project is licensed under the MIT License - see the License.md file for details.
Special thanks to all contributors and users for their support.
For any issues or feature requests, please open an issue on GitHub.
Made with ❤️ by Shradha-2022