Spaces:
Sleeping
Sleeping
File size: 1,060 Bytes
ec855e6 | 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 | # .env.example - copy to .env and edit
# -----------------------------
# Security / Access
# -----------------------------
# Static API key used to guard endpoints (REQUIRED )
EMBED_API_KEY=MY_SECURE_KEY
# Private hugging face token (REQUIRED)
HUGGING_FACE_TOKEN=your_free_token_with_repo_read_access
# -----------------------------
# Model & Device Settings
# -----------------------------
# HuggingFace model identifier
MODEL_NAME=Faysal4200/bge-m3-private
# Target device: "cuda" for GPU, "cpu" for CPU, or leave empty for auto-detection
DEVICE=
# How many texts to process in one model forward pass
BATCH_SIZE=8
# Maximum input sequence length (BGE-M3 supports up to 8192)
MAX_LENGTH=1024
# -----------------------------
# Server & Reliability
# -----------------------------
RETRY_ATTEMPTS=3
RETRY_BACKOFF_SECONDS=2.0
HOST=0.0.0.0
PORT=7860
WORKERS=1
# -----------------------------
# Logging (Premium Style)
# -----------------------------
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
|