This project is a demonstration of a system that uses local artificial intelligence to recommend songs to users. Recommendations are based on the songs the user frequently listens to.
- Node.js: Install the stable version to handle the necessary packages.
- Git: Required to clone the repository.
-
Clone the Repository
- Open Git Bash and run:
git clone https://github.com/AngelGab006/Proyecto-Recomendaciones-IA.git cd Proyecto-Recomendaciones-IA
- Open Git Bash and run:
-
Set Up the Project
- Initialize npm and set up Vite:
npm init -y npm install vite@latest npm install @mlc-ai/web-llm
- Initialize npm and set up Vite:
-
Start the Server
- Run the following command to start the server:
npm run dev
- Run the following command to start the server:
- Once the project is running, use the URL provided by the console (example:
http://localhost:5173/
). - This will open the project's user interface, where you can test the demo.
- Enter your name and favorite songs separated by commas in the appropriate fields.
- Alternatively, you can use it from this link: https://proyecto-recomendaciones-ia-ten.vercel.app/.
If you experience slowness on your PC due to this demo, it is advisable to modify the GPU usage. Go to src -> JS -> IA.js
and adjust the max_gpu_memory_fraction
parameter to a value between 0 and 1:
{ max_gpu_memory_fraction: 0.75 }
If you want to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature/new-feature).
- Make your changes and commit them (git commit -m 'Add new feature').
- Push your changes to your branch (git push origin feature/new-feature).
- Open a Pull Request.
This project is under the MIT License. For more details, see the LICENSE
file.