Git Product home page Git Product logo

calorie_app's Introduction

Health Management Web App

Overview

This web app is designed to provide information about the ingredients in a given food item based on an image. It uses the Google Gemini Pro Vision API to analyze the image and generate relevant details about the food items.

Features

  • Accepts an input prompt to guide the analysis.
  • Allows users to upload an image (JPEG, JPG, or PNG) for processing.
  • Provides information on the total calories and details of each food item recognized in the image.
  • Recognizes ingredients used in packaged food items and provides their effects on human health, along with potential side effects.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/health-management-app.git
    cd health-management-app
    

Install the required dependencies

pip install -r requirements.txt

Set up environment variables

  1. Create a .env file in the project root directory.
  2. Add your Google API key to the .env file: GOOGLE_API_KEY=your_api_key_here

Usage

  1. Run the Streamlit app: streamlit run app.py

  2. Access the app in your browser at http://localhost:8501.

  3. Input a prompt, choose an image, and click the "Submit" button to get information about the ingredients and calorie details

Dependencies

Streamlit Pillow (PIL) Google GenerativeAI Gemine Pro python-dotenv

calorie_app's People

Contributors

rohith4088 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.