rushankg commited on
Commit
1bf091f
·
verified ·
1 Parent(s): 0a77913

Update guardian.py

Browse files
Files changed (1) hide show
  1. guardian.py +1 -1
guardian.py CHANGED
@@ -25,7 +25,7 @@ def fetch_full_article(url: str) -> str:
25
  """
26
  Given a Guardian article URL, re-query its body text via the API.
27
  """
28
- key = st.secrets["guardian"]["api_key"]
29
  path = url.split("content.guardianapis.com")[-1]
30
  resp = requests.get(
31
  f"https://content.guardianapis.com{path}",
 
25
  """
26
  Given a Guardian article URL, re-query its body text via the API.
27
  """
28
+ key = st.secrets["GUARDIAN_API_KEY"]
29
  path = url.split("content.guardianapis.com")[-1]
30
  resp = requests.get(
31
  f"https://content.guardianapis.com{path}",