Commit ·
de71074
1
Parent(s): 2a11918
chore: Update metadata
Browse filesFiles changed (2)
- LESSONS.md+41-8
- README.md+1-1
1 unmodified line23456789101112131415324 unmodified lines3403413421 unmodified line## Table of Contents- [Docker](#1-docker)- [Dev Containers](#2-dev-containers)- [Redis](#3-redis)- [Postgres](#4-postgres)- [Unit Tests](#5-unit-tests)- [Locust](#6-locust)- [AWS](#7-aws)- [GitHub Actions](#8-github-actions)## 1. Docker324 unmodified lines- Runs when you **push or create a pull request** to the `main` branch.- Uses **Ubuntu** as the environment.- Sets up **Python 3.10**, installs dependencies, and runs **pytest** for tests.1 unmodified line2345678910111213141516324 unmodified lines3413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743751 unmodified line## Table of Contents1. [Docker](#1-docker)2. [Dev Containers](#2-dev-containers)3. [Redis](#3-redis)4. [Postgres](#4-postgres)5. [Unit Tests](#5-unit-tests)6. [Locust](#6-locust)7. [AWS](#7-aws)8. [GitHub Actions](#8-github-actions)9. [Streamlit](#9-streamlit)## 1. Docker324 unmodified lines- Runs when you **push or create a pull request** to the `main` branch.- Uses **Ubuntu** as the environment.- Sets up **Python 3.10**, installs dependencies, and runs **pytest** for tests.## 9. StreamlitTo fix **telemetry issues** and **403 errors on file uploads** during deployment (Docker/Hugging Face Spaces)., configure Streamlit with a `config.toml` in `/app/.streamlit/`:```toml[browser]gatherUsageStats = false[server]enableCORS = falseenableXsrfProtection = false```In Dockerfile:```dockerfileRUN mkdir -p /app/.streamlit /app/tmpCOPY .streamlit/ /app/.streamlit/```Or generate the same configuration in build stage:```dockerfileRUN mkdir -p /app/.streamlit \&& echo "[browser]\n" \"gatherUsageStats = false\n\n" \"[server]\n" \"enableCORS = false\n" \"enableXsrfProtection = false\n" \> /app/.streamlit/config.toml```
6 unmodified lines789101112136 unmodified linesapp_port: 8501tags:- streamlitpinned: falseshort_description: A CNN-based image classification with TensorFlowlicense: mit---6 unmodified lines789101112136 unmodified linesapp_port: 8501tags:- streamlitpinned: trueshort_description: A CNN-based image classification with TensorFlowlicense: mit---
LESSONS.md+41-8
README.md+1-1