Coder Social home page Coder Social logo

ewenme / gpt-2-raps Goto Github PK

View Code? Open in Web Editor NEW
37.0 2.0 10.0 375 KB

generate lyrics with GPT-2

Home Page: https://ewenme.github.io/gpt-2-raps/

License: MIT License

R 4.50% Jupyter Notebook 74.27% HTML 21.23%
gpt-2 lyrics-generator text-generation gpt2

gpt-2-raps's Introduction

gpt-2 raps

A neural rap lyrics generator powered by GPT-2, ported from gpt-2-poetry by @kcimc.

Example

Demo running here.

Setup

Contents

Input:

  • Genius song IDs stored in genius_song_ids.txt

src:

  • 00_requirements.R installs/loads required R libraries
  • 01_get-raps.R gets lyrics from Genius for tracks in genius_song_ids.txt, then exports to text files
  • 02_gen-raps.ipynb makes new lyrics based on random chunks from existing lyrics and seed words (should be run from your gpt-2/src/ directory)

Output:

  • [0-9].txt lyrics as text files (generated by 01_get-raps.R)
  • lyrics.json all original lyrics as JSON
  • generated.json all generated lyrics as JSON

index.html houses the demo app.

gpt-2-raps's People

Contributors

ewenme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.