Giter Club home page Giter Club logo

songisms's Introduction

Songisms

  • Song lyric database
  • Rhymes search client (rhymes.vercel.app)
  • Rhymes neural net

App layout

  • songisms -> main django project
  • songs -> django app, for admin of DB
  • rhymes -> django app, for querying rhymes
  • rhymes/client -> nuxt app, rhymes front-end

Setup

Setup Python env

  • 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

Setup DB

  • Create Postgresql DB/user and set SISM_DATABASE_URL env var
  • With psql:
    • CREATE EXTENSION fuzzystrmatch
    • CREATE EXTENSION cube
  • ./manage.py migrate

Setup Django

Setup rhymes client app

  • Requires Node v18: nvm use 18
  • Install yarn
  • cd rhymes/client
  • yarn - initial install
  • yarn dev - launch dev server
  • can also set SISM_RHYMES_API_BASE_URL (if Django isn't running locally on default port 8000)

Rhymes neural net

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

Train/use:

  • ./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

songisms's People

Contributors

dkellerman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.