Spaces:
Build error
Build error
Update services/cache.py
Browse files- services/cache.py +3 -0
services/cache.py
CHANGED
|
@@ -2,6 +2,9 @@
|
|
| 2 |
from functools import lru_cache
|
| 3 |
from typing import Tuple, Any
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
# TODO explain howto use the cache
|
| 6 |
class ResponseCache:
|
| 7 |
def __init__(self, cache_size: int = 1000):
|
|
|
|
| 2 |
from functools import lru_cache
|
| 3 |
from typing import Tuple, Any
|
| 4 |
|
| 5 |
+
from config.config import GenerationConfig, ModelConfig
|
| 6 |
+
|
| 7 |
+
|
| 8 |
# TODO explain howto use the cache
|
| 9 |
class ResponseCache:
|
| 10 |
def __init__(self, cache_size: int = 1000):
|