Giter VIP home page Giter VIP logo

songlistingbaseonemotion_langchain-framework's Introduction

Song Listing Application based on Emotion

Introduction

This is a Song Listing Application that uses the LangChain OpenAI API and Streamlit to curate a list of songs based on user-specified emotions. It provides an easy way to discover and listen to songs that match different emotional states.

Application Screenshot

Prerequisites

Before you can run this application, make sure you have the following prerequisites installed on your system:

  • Python (version 3.7 or higher)
  • pip (Python package manager)
  • Git (optional, for cloning the repository)

Installation

  1. Clone the GitHub repository:

    git clone https://github.com/PinsaraPerera/SongListingBaseOnEmotion_LangChain-Framework.git
  2. Install the required Python packages using pip:

    pip install -r requirements.txt

Configuration

You need to obtain an API key for the LangChain OpenAI API :

OPENAI_API_KEY=your_api_key_here

Replace your_api_key_here with your actual API key.

Running the Application

To run the application, use the following command:

streamlit run app.py

This will start the application locally. Open a web browser and navigate to the URL provided by Streamlit (usually http://localhost:8501) to access the application.

Usage

  1. Launch the application as described in the previous section.
  2. Select an emotion from the dropdown menu.
  3. Click on any listed emotion to generate a list of songs that match the selected emotion.
  4. Enjoy listening to the recommended songs!

Contributing

If you'd like to contribute to this project, please fork the repository and create a pull request with your changes. We welcome improvements and bug fixes.

License

This project is licensed under the MIT License.

Contact

If you have any questions or need further assistance, feel free to contact the project maintainer:

Acknowledgments

  • This application uses the LangChain OpenAI API to analyze emotions in song lyrics.
  • Streamlit was used to create the user interface for this application.

songlistingbaseonemotion_langchain-framework's People

Contributors

pinsaraperera avatar

Stargazers

 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.