A LSTM (Long Short Term Memory) model that generates Latvian folk songs - Dainas.
- Node script to scrape the training text corpus
- Node script to create and train the model with TensorFlow.js
- React front end app, to generate folk songs by loading a pre-trained model and generating data in the browser
Demo can be seen here
First install dependencies:
npm install
To scrape the training data:
npm build-data
To train the model:
npm build-model
To run the React app:
npm start
To create a production build of the React app:
npm run build-client
Due to the limitations of using TensorFlow.js in the browser, a pre-build model has to be loaded from a server using http/https