Fixed model.py errors, added pillow to requirements.txt & added index to installed apps.