mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
11 lines
275 B
Python
11 lines
275 B
Python
|
|
"""
|
||
|
|
Hyperparameters and configuration for gender prediction service.
|
||
|
|
"""
|
||
|
|
|
||
|
|
# Confidence threshold for using local model predictions
|
||
|
|
CONFIDENCE_THRESHOLD = 0.85
|
||
|
|
|
||
|
|
# Redis cache configuration
|
||
|
|
REDIS_CACHE_TTL = 86400 * 30 # 30 days in seconds
|
||
|
|
REDIS_KEY_PREFIX = "genderservice:"
|