Lega.AI / .env.hf
CoderNoah
Initial commit
8b7e8f0
# =============================================================================
# HUGGING FACE SPACES CONFIGURATION
# =============================================================================
# This file contains default configuration for Hugging Face Spaces deployment
# Set these environment variables in your Hugging Face Space settings
# =============================================================================
# REQUIRED: GOOGLE AI API CONFIGURATION
# =============================================================================
# Get your API key from: https://aistudio.google.com/
# Set this in Hugging Face Spaces under Settings -> Variables
GOOGLE_API_KEY=
# =============================================================================
# HUGGING FACE SPACES SETTINGS (Automatically configured)
# =============================================================================
# These are set automatically by the startup script
PORT=7860
STREAMLIT_SERVER_PORT=7860
STREAMLIT_SERVER_ADDRESS=0.0.0.0
# =============================================================================
# APPLICATION SETTINGS FOR PRODUCTION
# =============================================================================
DEBUG=False
LOG_LEVEL=INFO
# File upload settings (conservative for cloud deployment)
MAX_FILE_SIZE_MB=5
SUPPORTED_FILE_TYPES=pdf,docx,txt
# =============================================================================
# AI MODEL SETTINGS (Optimized for Hugging Face)
# =============================================================================
TEMPERATURE=0.2
MAX_TOKENS=2048
EMBEDDING_MODEL=models/text-embedding-004
# =============================================================================
# STORAGE CONFIGURATION (Cloud optimized)
# =============================================================================
CHROMA_PERSIST_DIRECTORY=./data/chroma_db
UPLOAD_DIR=./uploads
DATA_DIR=./data
LOG_FILE=./data/app.log
# =============================================================================
# SECURITY SETTINGS FOR CLOUD DEPLOYMENT
# =============================================================================
SECRET_KEY=huggingface-lega-ai-deployment
SESSION_TIMEOUT_MINUTES=30