Spaces:
Runtime error
Runtime error
File size: 570 Bytes
777509c 407361d 777509c a65325a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
docker build -t netsentinel .
docker run -p 7860:7860 netsentinel
// en temps reel
docker run -p 7860:7860 -v ${PWD}:/app -it netsentinel bash
user@1a8df249832e:/app$ export PYTHONPATH=/app/app:$PYTHONPATH
uvicorn app:app --host 0.0.0.0 --reload
# Créer un venv
python -m venv venv
# Activer (Windows CMD)
venv\Scripts\activate
# Activer (Linux / Mac)
source venv/bin/activate
# desactiver
deactivate
# Installer tes libs
pip install fastapi uvicorn[standard] numpy scikit-learn pandas
docker:
docker build -t fastapi-app .
docker run -d -p 7860:7860 fastapi-app
|