immohann / Lyrics-inducer

Lyrics-Generator/Inducer using LSTM and NLP in Tensorflow. lyrics inducer works: for any word given as the input and output will be a set of words forming some lyrics of song.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lyrics-Inducer

An AI model used to generate the lyrics for a set of words given as the input, using LSTM and NLP on Tensorflow framework.

Here's Medium blog for a detailed explaination: Lyrics-Inducer-Medium

Let's begin

Required Libraries

  • tensorflow: As the framework and to provide the essentials of Keras.
  • numpy: Array-processing package.
  • pandas: For importing data of various file formats.
  • matplotlib: Visualization package.
  • LSTM: Neural Network for model sequencing.

Dataset Details

The dataset is a self arranged dataset in (.txt) format, framed by gathering and consolidating the lyrics.

Songs included:

  • bad guy - the box - shape of you - all of me - failing - mine bazzi - heavy - hot girl bummer - the take - myself - skechers - do re mi - moonlight - blinding lights - goosebumps - chal-bombay - rockstar - starboy - cradles - roxanne.

AI_App (flask files)

-templates
	-index.html:  contains the html + css code.
-app.py:  application root file to call model and run flask.
-dataset.txt:  dataset used.
-model.h5:  keras converted trained model.
-Prockfile:  for heroku deployment.
-requirement.txt: contains required libraries.

  

Steps to run the flask app:

  • install flask
pip instal flask
  • clone the repo:
https://github.com/mohanqwerty5/Lyrics-Inducer.git
  • go to the app directoy in terminal:
cd Lyrics-Inducer/AI_App
  • launch the server
python app.py
  • in the browser run
http://127.0.0.1:5000/

Conclusion

Lyrics-Inducer using NLP and LSTM, the model is more like predicting the NEXT WORD according to previous set of words, hence not much accurate for predicting longer sentences, do try it. There are plenty of applications possible using the LSTM and NLP, do try.

About

Lyrics-Generator/Inducer using LSTM and NLP in Tensorflow. lyrics inducer works: for any word given as the input and output will be a set of words forming some lyrics of song.


Languages

Language:Jupyter Notebook 92.1%Language:Python 4.9%Language:HTML 3.0%