bare-bone web API to the mflux library.
mflux lib is not really updated on the pip repositories, so it's manually linked to the github repository in pyproject.toml.
this is just a simple API wrapper, for a full breakdown of mflux capabilities, check out the mflux github.
first install the dependencies using uv
uv sync
then run the api
uv run python -m uvicorn main:app --host 0.0.0.0 --port 8000
Note
the first time you run mflux, it will download the model weights and cache them. that's around 30gb of space, so it might take a while.
in the /client folder, there is a simple frontend to test the api.
just run a web server in the client folder to test it out.
-
add a simple web frontend to test the api -
add a queue system (you are position #4 in the queue) etc. -
add error handling