Code Monkey home page Code Monkey logo

mindaid's Introduction

MindAid - Your AI therapist / Companion.

Welcome brave

Description

This web application is designed to provide music therapy and emotional support to users by analyzing their diary entries and generating custom songs based on their emotions. The application uses several APIs, including Eleven Labs for custom voice, Spotify for playlist generation, Suno AI for custom songs, and OpenAI's GPT-4 for emotion analysis and message generation. The backend is built with Flask and the data is stored in MongoDB.

Requirements

  • Python 3.7 or higher
  • Flask
  • flask_cors
  • spotipy
  • openai
  • requests
  • pymongo
  • hashlib

Installation

  1. Clone the repository:
git clone https://github.com/ritessshhh/mindaid.git
  1. Navigate to the project directory:
cd mindaid
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Set up your environment variables:
  • Create a .env file in the project root directory.
  • Add your API keys and MongoDB connection string to the .env file.
  1. Run the Flask application:
python Server.py

Usage

  • The application provides endpoints for analyzing diary entries, generating custom songs, and retrieving stored songs.
  • Use the /heal endpoint to submit a diary entry and receive a custom song based on the analyzed emotions.
  • Use the /songs endpoint to retrieve a list of all stored songs.

API Endpoints

  • POST /heal: Analyzes the submitted diary entry and generates a custom song.
  • GET /songs: Retrieves a list of all stored songs.

License

This project is licensed under the MIT License.

mindaid's People

Contributors

ritessshhh avatar

Watchers

 avatar

mindaid's Issues

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.