Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def translate_text(text):
|
|
33 |
"""
|
34 |
cache_key = generate_cache_key(text)
|
35 |
|
36 |
-
|
37 |
if cached_result:
|
38 |
app.logger.info(f"Cache hit for key: {cache_key}")
|
39 |
return cached_result
|
|
|
33 |
"""
|
34 |
cache_key = generate_cache_key(text)
|
35 |
|
36 |
+
cached_result = cache.get(cache_key)
|
37 |
if cached_result:
|
38 |
app.logger.info(f"Cache hit for key: {cache_key}")
|
39 |
return cached_result
|