Boostcamp-CV-Serving
Prerequisites
- MySQL
- GCP Cloud Storage
- GCP key file
- Sentry
- Streamlit Cloud
- Secrets:
.streamlit/secrets.toml
#DO NOT SHARE THIS INFORMATION!!!! [mysql] host = <YOUR_HOST> port = 3306 database = <YOUR_DATABASE> user = <YOUR_USER> password = <YOUR_PASSWORD> [gcp] project_id = <YOUR_PROJECT_ID> private_key_id = <YOUR_PROJECT_KEY> private_key = <YOUR_PRIVATE_KEY> client_email = <YOUR_CLIENT_EMAIL> client_id = <YOUR_CLIENT_ID> bucket = <YOUR_BUCKET> [sentry] sentry_url = <YOUR_SENTRY_URL>
Installation
Local Environmnet
- Add
secrets.toml
into.streamlit
folder with the above information. - Initialize Database
python init_database.py
- Run following commands
pip install -r requirements.txt streamlit run main.py
Streamlit Cloud Environment
- Sign up for https://streamlit.io/cloud using Github account.
- Click Deploy app.
- Choose Github repository and main python file.
- Copy and Paste the secrets by clicking the advanced setting button.
- Deploy