Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
d574b22
1
Parent(s):
44beb50
update trending cache TTL from 15 minutes to 1 hour
Browse files
main.py
CHANGED
@@ -22,7 +22,7 @@ MODEL_NAME = "davanstrien/SmolLM2-360M-tldr-sft-2025-02-12_15-13"
|
|
22 |
EMBEDDING_MODEL = "nomic-ai/modernbert-embed-base"
|
23 |
BATCH_SIZE = 2000
|
24 |
CACHE_TTL = "24h"
|
25 |
-
TRENDING_CACHE_TTL = "
|
26 |
|
27 |
if torch.cuda.is_available():
|
28 |
DEVICE = "cuda"
|
|
|
22 |
EMBEDDING_MODEL = "nomic-ai/modernbert-embed-base"
|
23 |
BATCH_SIZE = 2000
|
24 |
CACHE_TTL = "24h"
|
25 |
+
TRENDING_CACHE_TTL = "1h" # 15 minutes cache for trending data
|
26 |
|
27 |
if torch.cuda.is_available():
|
28 |
DEVICE = "cuda"
|