.
├── app/
│ ├── utils/
│ └── pages/
├── scripts/
├── data/
│ ├── metrics/
│ ├── raw_upload/
│ ├── taxonomy/
│ └── train/
├── .gitignore
├── README.md
└── requirements.txt
Takes like 10mins for first time ~
# Create virtual env
python -m venv venv
# To use created environment
source venv/bin/activate
# To install packages from file
python -m pip install -r requirements.txt
# Do stuff
...
# Deactivate environment / close terminal when done
deactivate
# requires "all_tagged_articles_new.csv" in root folder
python scripts/modelling.py
# requires "default model" and "all_tagged_articles_new.csv"
streamlit run app/main.py
streamlit
numpy
scikit-learn
...
...
<YOUR LIBRARY NAME>
# Exit old environment
deactivate
# Purge old environment
rm -rf venv
# Create fresh environmnet
python -m venv venv
# Activate environment
source venv/bin/activate
# Optionally update pip
python -m pip install -U pip
# Install package with auto-resolver
python -m pip install -r requirements-base.txt
# Export locked versions for team use
echo "--extra-index-url https://download.pytorch.org/whl/cpu" > requirements.txt
pip freeze >> requirements.txt
# Make sure app is working
...
Install docker if not available
# Install docker desktop for windows / mac
https://www.docker.com/products/docker-desktop/
# For linux server install
sudo apt-get update && sudo apt-get upgrade
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo groupadd docker
sudo usermod -aG docker $USER
# Reboot
# Linux also need to explicit install compose plugin
sudo apt-get install docker-compose-plugin
Build & push container
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag <repo_name>/news-matching:latest .
Run container from docker hub
docker compose up -d
echo http://localhost:8501/
# Do whatever
...
docker compose down
Jupyter Notebook
97.2%
Python
2.7%
.
├── app/
│ ├── utils/
│ └── pages/
├── scripts/
├── data/
│ ├── metrics/
│ ├── raw_upload/
│ ├── taxonomy/
│ └── train/
├── .gitignore
├── README.md
└── requirements.txt
Takes like 10mins for first time ~
# Create virtual env
python -m venv venv
# To use created environment
source venv/bin/activate
# To install packages from file
python -m pip install -r requirements.txt
# Do stuff
...
# Deactivate environment / close terminal when done
deactivate
# requires "all_tagged_articles_new.csv" in root folder
python scripts/modelling.py
# requires "default model" and "all_tagged_articles_new.csv"
streamlit run app/main.py
streamlit
numpy
scikit-learn
...
...
<YOUR LIBRARY NAME>
# Exit old environment
deactivate
# Purge old environment
rm -rf venv
# Create fresh environmnet
python -m venv venv
# Activate environment
source venv/bin/activate
# Optionally update pip
python -m pip install -U pip
# Install package with auto-resolver
python -m pip install -r requirements-base.txt
# Export locked versions for team use
echo "--extra-index-url https://download.pytorch.org/whl/cpu" > requirements.txt
pip freeze >> requirements.txt
# Make sure app is working
...
Install docker if not available
# Install docker desktop for windows / mac
https://www.docker.com/products/docker-desktop/
# For linux server install
sudo apt-get update && sudo apt-get upgrade
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo groupadd docker
sudo usermod -aG docker $USER
# Reboot
# Linux also need to explicit install compose plugin
sudo apt-get install docker-compose-plugin
Build & push container
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag <repo_name>/news-matching:latest .
Run container from docker hub
docker compose up -d
echo http://localhost:8501/
# Do whatever
...
docker compose down
Jupyter Notebook
97.2%
Python
2.7%