This server helps to preprocess audio data before passing the data over to a proof generation cluster.
The server uses flask and celery.
docker-compose up
Test getting proof from a worker
curl -F audio=@test_files/angry.wav localhost:5000/prove
-
Run
poetry env use 3.9
-
Run
poetry shell
, the previous command should initiate a virtual environment shell for you. Otherwise, run this line. -
Run
poetry install
-
Rename
api_key.py.example
toapi_key.py
and get the relevant variables. -
Run
python app.py
to run a test upload. -
Run
flask run
to start the development server.