- Song lyric database
- Rhymes search client (rhymes.vercel.app)
- Rhymes neural net
songisms
-> main django projectsongs
-> django app, for admin of DBrhymes
-> django app, for querying rhymesrhymes/client
-> nuxt app, rhymes front-end
- Requires python 3.9+
(From root directory):
pip install virtualenv
python -m virtualenv -p python3.11 env
source env/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
- Create Postgresql DB/user and set
SISM_DATABASE_URL
env var - With psql:
CREATE EXTENSION fuzzystrmatch
CREATE EXTENSION cube
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver
- Browse admin: https://localhost:8000/admin/
- Requires Node v18:
nvm use 18
- Install yarn
cd rhymes/client
yarn
- initial installyarn dev
- launch dev server- can also set
SISM_RHYMES_API_BASE_URL
(if Django isn't running locally on default port 8000)
For M1 Mac, do this first:
pip uninstall torch
(if it's installed)pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu
./manage.py rhymesnet --train
- takes a while obv.- Maybe:
./manage.py rhymesnet --test
./manage.py rhymesnet --predict "phrase 1" "phrase 2"
See params in rhymes/nn.py