Commit ·
a49be86
1
Parent(s): d6395d2
Lower model selection smoothing factor from 500 to 200 for faster new model coverage
Browse files
app.py
CHANGED
|
@@ -149,7 +149,7 @@ TTS_CACHE_SIZE = int(os.getenv("TTS_CACHE_SIZE", "10"))
|
|
| 149 |
CACHE_AUDIO_SUBDIR = "cache"
|
| 150 |
tts_cache = {} # sentence -> {model_a, model_b, audio_a, audio_b, created_at}
|
| 151 |
tts_cache_lock = threading.Lock()
|
| 152 |
-
SMOOTHING_FACTOR_MODEL_SELECTION =
|
| 153 |
# Increased max_workers to 8 for concurrent generation/refill
|
| 154 |
cache_executor = ThreadPoolExecutor(max_workers=8, thread_name_prefix='CacheReplacer')
|
| 155 |
all_sentence_texts = [] # Keep the full list available
|
|
|
|
| 149 |
CACHE_AUDIO_SUBDIR = "cache"
|
| 150 |
tts_cache = {} # sentence -> {model_a, model_b, audio_a, audio_b, created_at}
|
| 151 |
tts_cache_lock = threading.Lock()
|
| 152 |
+
SMOOTHING_FACTOR_MODEL_SELECTION = 200 # For weighted random model selection
|
| 153 |
# Increased max_workers to 8 for concurrent generation/refill
|
| 154 |
cache_executor = ThreadPoolExecutor(max_workers=8, thread_name_prefix='CacheReplacer')
|
| 155 |
all_sentence_texts = [] # Keep the full list available
|