/HTNXTAFH

Theodore, Helen, Alex, Freddy

Primary LanguagePython

HTNXTAFH

Preservia.tech , your personal virtual grocery inventory!

Scan your groceries or your reciepts and automatically catalogue them in your personal virtual inventory.

Automatically track expiration dates and minimize food waste!

Create instant recipes with the ingredients you have!

By Theodore, Helen, Alex, Freddy

How to run

  1. Install the requirements
  2. Init the database with flask db init
  3. Then prep the database with flask db migrate and flask db upgrade
  4. Make a top level file called keys.py
    1. Get a production API key for Cohere (https://dashboard.cohere.com/api-keys) and set it as COHERE_API_KEY = "your key"
    2. Get any API key for API Ninjas (https://api-ninjas.com/api/imagetotext) and set it as API_NINJAS_KEY = "your key"
    3. Get an OpenAI Chat (https://platform.openai.com/account/api-keys) key and set it as OPENAI_KEY = "your key"
  5. Run the flask server with python app.py

How to connect phone to computer to demo it from the phone

  1. Set the phone as a hotspot
  2. Connect the computer to the phone's hotspot
  3. Make sure that in app.py, the host is set to 0.0.0.0
  4. Take the secondary ip in the print when the server starts
  5. On the phone, go to the ip address of the computer and the port 8000 like the print says
  6. Proffit.