Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import urllib.error
|
|
| 12 |
import datetime
|
| 13 |
import html
|
| 14 |
|
| 15 |
-
@st.
|
| 16 |
def get_top_urls_and_keyword(keyword):
|
| 17 |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
| 18 |
CUSTOM_SEARCH_ENGINE_ID = os.getenv("CUSTOM_SEARCH_ENGINE_ID")
|
|
|
|
| 12 |
import datetime
|
| 13 |
import html
|
| 14 |
|
| 15 |
+
@st.cache_resource
|
| 16 |
def get_top_urls_and_keyword(keyword):
|
| 17 |
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
| 18 |
CUSTOM_SEARCH_ENGINE_ID = os.getenv("CUSTOM_SEARCH_ENGINE_ID")
|