-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (36 loc) 路 1.07 KB
/
Copy path.env.example
File metadata and controls
44 lines (36 loc) 路 1.07 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Environment configuration for Sentiment Analyzer
# Copy this file to .env and modify values as needed
# Flask Configuration
FLASK_ENV=production
FLASK_DEBUG=0
FLASK_SECRET_KEY=your-super-secret-key-change-this-in-production
HOST=0.0.0.0
PORT=5000
# Model Configuration
PRIMARY_MODEL_NAME=fitsblb/YelpReviewsAnalyzer
FALLBACK_MODEL_NAME=distilbert-base-uncased-finetuned-sst-2-english
MODEL_CACHE_DIR=./model_cache
MAX_TEXT_LENGTH=1000
# API Configuration
MAX_CONTENT_LENGTH=1048576
API_RATE_LIMIT=100
API_TIMEOUT=30
API_PREFIX=/api
# Docker Hub Credentials (for CI/CD)
DOCKER_USERNAME=your-docker-hub-username
DOCKER_PASSWORD=your-docker-hub-password
# Logging Configuration
LOG_LEVEL=INFO
# LOG_FILE=/path/to/app.log # Optional: specify log file location
# Performance Settings
MODEL_BATCH_SIZE=1
REQUEST_TIMEOUT=30
# Security Settings (for production)
CORS_ORIGINS=*
MAX_CONTENT_LENGTH=16384
# Production Settings (uncomment for production)
# FLASK_ENV=production
# DEBUG=false
# SECRET_KEY=your-super-secret-production-key-here
# LOG_LEVEL=WARNING
# CORS_ORIGINS=https://yourdomain.com