Spaces:
Runtime error
Runtime error
# Hugging Face Configuration | |
# Get your token from https://huggingface.co/settings/tokens | |
# Make sure to select "WRITE" access when creating the token | |
HUGGINGFACE_TOKEN=your_huggingface_token_here | |
# System Configuration | |
DEBUG_MODE=False | |
LOG_LEVEL=INFO | |
MAX_WORKERS=4 | |
ASYNC_TIMEOUT=30 | |
# Resource Limits | |
MAX_MEMORY_MB=8192 | |
MAX_CPU_PERCENT=90 | |
MAX_GPU_MEMORY_MB=4096 | |
MAX_API_CALLS_PER_MINUTE=500 | |
# Team Configuration | |
MIN_TEAM_SIZE=2 | |
MAX_TEAM_SIZE=10 | |
MAX_CONCURRENT_OBJECTIVES=5 | |
# Error Recovery | |
MAX_RETRIES=3 | |
RETRY_DELAY_SECONDS=5 | |
ERROR_THRESHOLD=0.2 | |
# Monitoring | |
METRICS_INTERVAL_SECONDS=60 | |
HEALTH_CHECK_INTERVAL=30 | |
PERFORMANCE_LOG_RETENTION_DAYS=7 | |
# API Keys | |
# Get your Hugging Face token from https://huggingface.co/settings/tokens | |
# Required for uploading to Spaces - must have WRITE access | |
HUGGINGFACE_API_KEY= | |
# Optional API keys for additional features | |
OPENAI_API_KEY=your_openai_api_key | |
GROQ_API_KEY=your_groq_api_key | |
# Service Configuration | |
PORT=7860 | |
HOST=0.0.0.0 | |
DEBUG=True | |
ENVIRONMENT=development | |
# Database Configuration | |
DATABASE_URL=sqlite:///./ventures.db | |
# Model Configuration | |
MODEL_CACHE_DIR=./model_cache | |
DEFAULT_MODEL=gpt-4-turbo-preview | |
# Venture Configuration | |
MIN_PROFIT_TARGET=1000000 | |
DEFAULT_CURRENCY=USD | |
RISK_TOLERANCE=medium | |
# API Configuration | |
API_VERSION=v1 | |
API_PREFIX=/api/v1 | |
CORS_ORIGINS=["*"] | |
MAX_REQUEST_SIZE=10MB | |
# Monitoring Configuration | |
ENABLE_METRICS=True | |
METRICS_PORT=9090 | |
LOG_LEVEL=INFO | |
# Cache Configuration | |
REDIS_URL=redis://localhost:6379/0 | |
CACHE_TTL=3600 | |
# Security Configuration | |
JWT_SECRET=your_jwt_secret | |
JWT_ALGORITHM=HS256 | |
ACCESS_TOKEN_EXPIRE_MINUTES=30 | |
# Feature Flags | |
ENABLE_PORTFOLIO_OPTIMIZATION=True | |
ENABLE_MARKET_ANALYSIS=True | |
ENABLE_MONETIZATION_STRATEGY=True | |
ENABLE_VENTURE_ANALYSIS=True | |
# Note: After copying this file to .env: | |
# 1. Replace 'your_huggingface_token_here' with your actual token | |
# 2. Make sure your token has WRITE access for Spaces | |
# 3. Keep this .env.example file for reference | |
# 4. Never commit your actual .env file with real tokens | |