This repository contains code to run our AI meme generator.
- Create a virtual env
virtualenv ~/memesAI - Activate by running
source ~/memesAI/bin/activate - Import all the requirements from requirements.txt through
pip install -r requirements.txt
The meme generator requires three environment variables: WEAVIATE_URL, ACCESS_TOKEN, and OPENAI_API_KEY.
These can be set manually, or you can run the script set-env-vars to set them by running source set-env-vars.
NOTE: Before running set-env-vars, please make sure to populate the variables in the script.
The application can be run using the following command: python manage.py runserver
If you would like to test the weaviate instance, you can run bin/weaviate_query_test.py.
If the script returns two descriptions and saves two image files, one with a squirrel and one with Leonardo DiCaprio, you are good to go.