Coder Social home page Coder Social logo

nbalepur / rap-lyric-generator Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 85.32 MB

Generating Kanye West lyrics using a LSTM network in Pytorch, deployed to a website

Home Page: https://kanye-lyric-generator.herokuapp.com/

Jupyter Notebook 54.70% Python 11.00% HTML 9.01% CSS 1.74% JavaScript 23.54%
pytorch pytorch-lstm text-generation nlp flask reactjs

rap-lyric-generator's Introduction

Kanye Lyric Generator

In this project, I use an LSTM (Long Short-Term Memory) Recurrent Neural Network in Pytorch for text generation. Specifically, I take a sample of Kanye West verses to generate new lyrics! Afterwards, this model was deployed to Flask via Heroku and connected to a simple React App

Note: The website can be viewed here

thumbnail



Getting Started

To get this project running on your machine, follow the instructions below

Jupyter Notebook

To make changes to the Jupyter Notebook, you will need to install Pytorch. You can find more in-depth instructions on how to do so here

Alternatively, you can simply view the results of the Jupyter Notebook here on Jovian, or here in the repository locally

Flask Web App

Before you are able to run the web server, you will need to install Python and Flask. Instructions on how to set up Flask with Visual Studio Code can be found here

Now, run the following command to get the files on your machine

git clone https://github.com/nbalepur/Kanye-Song-Generator.git

Navigate to ./Kanye-Song-Generator/, and run the following command:

flask run

This will open up the website in locally in your default browser



Website User Guide

Navigating the website is very simple! To start generating lyrics, you must first fill out the following fields:

  • Starting Text: The beginning of the lyric to be generated
  • Number of Words: The number of additional words to generate
  • Censor Profanity?: Checkbox to hide/show explicit language
  • Randomize?: Choose whether the algorithm should select the best fitting word, or a random word from the top 3 best words

After these fields are tuned to your liking, simply press Generate to create a new lyric!

thumbnail


This website also has a light / dark mode switch in the upper-left hand corner!

themes



Website Info

This website was created using the following technologies:

  • Jupyter Notebook: Training the Recurrent Neural Network

  • React: Front end library

  • Flask: Back end API

  • Heroku: Website hosting



Acknowledgements

The Pytorch background I needed for this project was extremely well-taught form this data science article, so thank you for making the information accessible and easy to follow!



Author Info / Contact

All of the code for this resository was written by me, Nishant Balepur. If you have any questions or concerns, feel free to reach out!

rap-lyric-generator's People

Contributors

nbalepur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rxhith

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.