Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -226,8 +226,8 @@ def fetch_news(query, num_results=20):
|
|
226 |
else:
|
227 |
return []
|
228 |
|
229 |
-
@
|
230 |
-
|
231 |
return fetch_news(query)
|
232 |
|
233 |
|
|
|
226 |
else:
|
227 |
return []
|
228 |
|
229 |
+
@lru_cache(maxsize=100)
|
230 |
+
def cached_fetch_news(query: str):
|
231 |
return fetch_news(query)
|
232 |
|
233 |
|