Skip to content
Great Machine Learning platform to render and decide with one picture of a sneaker, which model it is.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
compass
lib
sneakers
templates
tf_files
uCode
.gitignore
.travis.yml
README.md
db.sqlite3
manage.py
pytest.ini
requirements.txt

README.md

uCode-March-2017 Build Status

Prerequisites

  1. ruby 2.4
  • compass
  1. Python 3
  • pip
  • virtualenvwrapper
  1. Redis
  2. git

Install

I highly recommend to install virtualenvwrapper

$ mkvirtualenv -p python3 ucode
$ pip install -r requirements.txt

Run

$ python manage.py celery -A uCode worker -l debug -B
$ python manage.py runserver 0.0.0.0:8000

Local settings

Change the xxx credentials with your own ones. Store it in uCode/local_settings.py

from pytumblr import TumblrRestClient
from twitter import Api


# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'xxx'

twitter_api = Api(consumer_key='xxx',
        consumer_secret='xxx',
        access_token_key='xxx-xxx',
        access_token_secret='xxx',
        tweet_mode='extended')


consumer_key = "xxx"
consumer_secret = "xxx"
token = "xxx"
token_secret = "xxx"
api_key = "xxx"

tumblr_api = TumblrRestClient(consumer_key,
        consumer_secret,
        token,
        token_secret)

telegram_token="xxx:xxx"

BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Europe/Madrid'
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
You can’t perform that action at this time.