Download model/settings.py from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/model/settings.py
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN@3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/model/settings.py
-
curl -L -o settings.py https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/model/settings.py
395 Bytes
| import os | |
| # We will store images uploaded by the user on this folder | |
| UPLOAD_FOLDER = "uploads/" | |
| os.makedirs(UPLOAD_FOLDER, exist_ok=True) | |
| # REDIS | |
| # Queue name | |
| REDIS_QUEUE = "service_queue" | |
| # Port | |
| REDIS_PORT = 6379 | |
| # DB Id | |
| REDIS_DB_ID = 0 | |
| # Host IP | |
| REDIS_IP = os.getenv("REDIS_IP", "redis") | |
| # Sleep parameters which manages the interval between requests to our redis queue | |
| SERVER_SLEEP = 0.05 | |