Skip to content

sayoojtmc/melo-aid-backend

Repository files navigation

melo-aid-backend

How to run

  1. pip3 install -r requirements.txt
  2. wget https://storage.googleapis.com/magentadata/models/onsets_frames_transcription/tflite/onsets_frames_wavinput.tflite
  3. python3 -m flask run

VM setup

  1. Install the necessary linux libraries
sudo apt install python3 libsndfile1 open-ssl python3-pip lib-ssl net-tools apache2 ffmpeg
  1. Restart the VM and install wsgi connector library
sudo reboot
sudo apt install libapache2-mod-wsgi-py3
  1. Move the apache server conf file to the required directory and change the permission of home directory (Do it only if apache is throwing error).
cd melo-aid-backend
sudo mv server_conf/website.conf /etc/apache2/sites-available/
chmod 755 /home/meloaid
  1. Disable default site and enable custom site, then reload apache.
sudo a2dissite 000-default.conf
sudo a2ensite website.conf
sudo systemctl reload apache2

Changes made to server

New subdomain api.meloaid.com for backend purposes. The generated songs are accessed using api.meloaid.com\songs\{filename} on the frontend.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages