Hunger Hack is a web application that suggests recipes based on the contents of your fridge. Users can upload photos of their fridge, set some parameters, and receive suggestions on what to cook along with the steps based on their parameters and items.
hunger_hack_ui.py
: This is the main file that contains the Streamlit-powered user interface.models
: This directory contains the Text and Vision models which run the Gemini API.tests
: This directory contains various test files that use TruLens to test different models.
-
Clone the repository:
git clone [email protected]:srivatsan25297/HungerHack.git
-
Navigate into the project directory:
cd hungerhack
-
Install the required dependencies:
pip install -r requirements.txt
Note: It's recommended to use a virtual environment to avoid conflicts with other packages.
-
Export your Google API key:
export GOOGLE_API_KEY=<your_google_api_key>
-
Export your OpenAI API key:
export OPENAI_API_KEY=<your_openai_api_key>
- Run the Streamlit application:
streamlit run hunger_hack_ui.py
- Open your web browser and visit
http://localhost:8501
to view the application.
- Run the tests:
pytest tests