Base project with which I won the hackathon of the DragonJar conf computer security event
create a virtual env
uv venv
source .venv/bin/activate
python models.py
In server.py put the path where your model has been exported from the models.py file
vectorizer_path = './models/vectorizer.joblib'
loaded_model = load(model_path)
https://medium.com/bitgrit-data-science-publication/forget-pip-install-use-this-instead-754863c58f1e