If you're working under M1 processor, have a look at the next section.
First, clone this repository:
git clone https://github.com/Liquid-Platonic/music-orchistrator.gitInstall python 3.8.13 if you do not have it already(via pyenv or directly):
pyenv install 3.8.13Then, install poetry via:
pip install poetryFinally install dependencies via:
make installActivate your environment, and before installing the dependencies run:
poetry config virtualenvs.path <conda-installation-path>You have to compile transformers from source using Rust. Please follow run the following commands:
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-pathgit clone https://github.com/huggingface/tokenizerspip install setuptools_rustcd tokenizers/bindings/python && python setup.py installpip install torch==1.11.0 torchaudio==0.11.0
You can find more info here: https://towardsdatascience.com/hugging-face-transformers-on-apple-m1-26f0705874d7.
conda install scipy==1.6.1 conda install librosa
- Run
make installto install dependencies - Run
make cleanto remove unnecessary files from the repo - Run
make pre-committo run pre-commit hooks - Run
make reformatto reformat code to the PEP8 format
First you should run pre-commit install for the pre-commit hooks to be installed. When committing to the repo, pre-commit hooks are automatically triggered. You can run them manually via make pre-commit.
Follow the tutorial here on how to create an integration with the Cyanite API.
You have two get the following keys:
- Secret
- Access Token
These two keys should be registered on the config file found in dalang/config/config.env.
PORT should be set to 8080 and API_URL to https://api.cyanite.ai/graphql.
To establish a connection with the API run:
python dalang/apis/proxyport.py